I use symfony 1.4 with Doctrine. How to make printable version of page in symfony?
I have module "company" and I want to make printable version of show action.
Is it possible to open information 开发者_JS百科about my company in new window without sidebar, footer...content which I need to print?
// company/config/view.yml
showSuccess:
has_layout: false
'The view.yml configuration file defines the default layout used by the application. By default, the name is layout, and so symfony decorates every page with the layout.php file, found in the application templates/ directory. You can also disable the decoration process altogether by setting the ~has_layout~ entry to false' (c. The view.yml Configuration File ).
精彩评论