Hi,
I'm trying to achieve the following and having real difficulty in seeing how
it should work:

1)  have a global layout using Zend_Layout which renders some
common-to-all-actions stuff - a header, a menu, a footer.  The 'main action'
is then rendered to layout()->content.
2)  have the 'main action' render some widget actions to placeholders within
its view script.

So if I have the following
IndexController:
        menuAction
        headerAction
        indexAction
        widgetAction
        anotherWidgetAction

layout.phtml:
    <?= $this->layout()->header ?>
    <?= $this->layout()->menu ?>
    <?= $this->layout()->content ?>


index.phtml:
    <? //I want widgetAction content rendered here ?>

    <? //I want anotherWidgetAction content rendered here ?>



When I go to /index/index, menuAction and headerAction are called by the
ActionStack and rendered at the appropriate placeholders in layout.phtml by
Zend_Layout.  

Then I want indexAction to call widgetAction and anotherWidgetAction and
render them to placeholders within index.phtml.



What is the best way of achieving this?  I am adding widgetAction &
anotherWidgetAction to the ActionStack in indexAction, but how do I render
them to placeholders in index.phtml?


Any help appreciated with this, I've been playing with this on & off for a
few weeks and am no closer to making it work!


Thanks,
Mark
-- 
View this message in context: 
http://www.nabble.com/Zend_Layout-for-individual-actions--tp23356760p23356760.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to