ZF-8018: Disable layout in Zend_Rest_Controller

Issue Type: Improvement Created: 2009-10-05T10:51:57.000+0000 Last Updated: 2009-10-06T06:06:26.000+0000 Status: Resolved Fix version(s): Reporter: Sudheer Satyanarayana (bonaparte) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Rest_Route

Related issues: Attachments:


Disable the layout in Zend_Rest_Controller

The user can disable the layout himself/herself. But it's nice to have the layout disabled by default when requests are routed to Zend_Rest_Controller.

If you like a patch, let me know. :)


Posted by Matthew Weier O'Phinney (matthew) on 2009-10-06T06:05:21.000+0000

I disagree with this. REST does not imply that there will not be a layout by any means, and I actually have RESTful resources that display both HTML as well as JSON; the former uses a layout, while the latter does not.

Posted by Matthew Weier O'Phinney (matthew) on 2009-10-06T06:06:26.000+0000

Besides the reasons mentioned in my previous comment, changing the behavior at this point would be a backwards compatibility break. Both are sufficient reasons to close this issue.

Have you found an issue?

See the Overview section for more details.


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

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