ZF-11753: setResponseSegment to 'content' doesn't work

Issue Type: Bug Created: 2011-09-19T19:28:35.000+0000 Last Updated: 2012-03-11T20:00:58.000+0000 Status: Open Fix version(s): Reporter: Bavo Janss (bavo) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View

Related issues: Attachments:


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.


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:


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:


Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.