ZF-11753: setResponseSegment to 'content' doesn't work
Description
when setting the segment explicitly to 'content' nothing ends up in layout()->content. There is no obvious reason setting the segment to 'content' shouldn't work.
when setting the segment explicitly to 'content' nothing ends up in layout()->content. There is no obvious reason setting the segment to 'content' shouldn't work.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2012-03-05T22:43:23.000+0000
Can you please provide a simple case which reproduces your error?
Posted by Bavo Janss (bavo) on 2012-03-11T20:00:58.000+0000
In default layout file:
{{echo $this->layout()->content;}}
In controller action:
{{$this->_helper->viewRenderer->setResponseSegment('content');}}
In view file:
{{echo 'CONTENT'}}
The output is empty.
====
When changing 'content' to anything but 'content' works fine. So in default layout file:
{{echo $this->layout()->content2;}}
In controller action:
{{$this->_helper->viewRenderer->setResponseSegment('content2');}}