(on Wednesday, 26 November 2008, 07:40 AM -0800):
>
> How do I access a named response segment in a view script which is not my
> layout script?
> I have a couple of pages within my layout that have a sidebar themselves,
> and i'm trying to render to that sidebar using an actionstack.
Grab it from the response object:
$response = Zend_Controller_Front::getInstance()->getResponse();
$content = $response->getBody($segmentName);
> Alternatively, I would like to do this via a "sublayout"...but I can't
> figure out how to render a layout within another layout.
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论