Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2008, 12:37 AM
Junior Member
 
Join Date: Jun 2008
Posts: 1
Default using Action View Helper with layout

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:08 AM.