开发者

Printable version in symfony

开发者 https://www.devze.com 2023-03-27 22:50 出处:网络
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.

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 ).

0

精彩评论

暂无评论...
验证码 换一张
取 消