|
|||
|
Hi,
So I have an index view and I wanted to render a section of that page (lets call it productDisplay) by using Action View Helper to call the productDisplayAction. However, I am using Zend Layout so when I render the productDisplayAction inside of the index, it gets wrapped by the header and footer. When I disable layout or set the layout to a "blank" layout then the index view no longer has the header and footer. I noticed that I could use a partial in the index view for productDisplay, but that means that I need to retrieve the product objects in the indexAction and any other page that uses productDisplay. (and I'd rather reuse that code) Another option I considered is to make an xhttprequest to productDisplay once the page is loaded, but that doesn't seem like a good idea to me... So I guess my question is: is there a way to separately change the layout with Action View Helper? OR is there a better way to go about breaking up the code into more reusable pieces? Thank you |
![]() |
| Thread Tools | |
| Display Modes | |
|
|