I’m working through the book “Zend Framework – A beginners guide”.
Part of the third chapter describes working with a masterlayout.
For my navigation I’d like to set the id-attrib of the body dynamically. How can I get a parameter from any controller to this layout-file?
The master-layout is set in application.ini:
resources.layout.layoutPath = APPLICATION_PATH "/layouts"
resources.layout.layout = master
greetings
Frank
You can use view vars for simple variables you need to pass into layout scripts:
In your controller:
In your layout script: