Hi,
I'm trying to create a clean, widgetized page using Zend_Layout &
ActionStack.  I have a global layout.phtml file with placeholders like 
<?= $this->layout()->menu ?>,
<?= $this->layout()->content ?>,
and am adding the menu action to the ActionStack in a controller plugin from
dispatchLoopStartup.  In the menu action I am assigning it to the
placeholder like
$this->_helper->viewRenderer->setResponseSegment('menu')

All this is working just fine - really easy & clean.

But now I want to have a similar system within my controller actions.  Say I
have a primary action I'm trying to view - myPageAction.  My current
implementation handles showing the menu and other things, but within
myPageAction I want to render content from myWidgetAction and
myOtherWidgetAction.  So I push these actions to the actionstack within
myPageAction - but how do I render them in placeholders within
my-page.phtml?

Code like <?= $this->layout()->menu ?> or <?= $this->layout()->myWidget ?>
doesn't render anything within the context of my-page.phtml - does anyone
have any insight into how to construct this code?

There's a lot of posts on the forum about this, but I can't find anything
that explains it in sufficient detail for me to follow - I'm fairly sure
Matthew answers the question in
http://www.nabble.com/global-layout----controller-layout-td18401027.html#a18401027
but I can't flesh out his reply sufficiently to code it up!

Any insight appreciated.

Yours,
Mark
-- 
View this message in context: 
http://www.nabble.com/Another-Zend_Layout-question-tp22663886p22663886.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to