|
|||
|
Hello,
I have been trying to create some dynamic content (A sidebar) and have it display different content dynamically. I have working solution but it is not the way I expected it to work. In the layout I have the following code PHP Code:
PHP Code:
PHP Code:
PHP Code:
I have tried PHP Code:
Thanks Madmaxious |
|
||||
|
If you haven't already, checkout this webinar on Layout and View enhancements.
It seams to me you should be putting your dynamic menus/sidebars/etc in a placeholder then echoing that placeholder in your layout. There are a number of view helpers related to layout that can assist so make sure to check the reference manuals Layout and View sections for assistance with those as well. Zend Framework: Documentation Zend Framework: Documentation |
|
|||
|
Hello,
Thanks for the post. I have a listened thorugh the whole webinar and it doesnt suggest a better way to handle it. My pages work fine but I have a niggling thought that maybe there should be a better way to do it. Regards Scott |
![]() |
| Thread Tools | |
| Display Modes | |
|
|