ZF-6760: ContextSwitch doesn't work with _forward utility method

Issue Type: Bug Created: 2009-05-21T02:54:01.000+0000 Last Updated: 2012-11-20T20:53:21.000+0000 Status: Closed Fix version(s): Reporter: Richard John (richardjohn) Assignee: None Tags: - Zend_Controller

Related issues: Attachments:


I'm having an odd issue with _forward and ContextSwitch, which looks like it could be a ZF bug. I'm switching the output format using the ContextSwitch helper in my controller's init() method, which all works fine. However, if an action of this controller forwards to another controller's action, the content-type header is set, layout rendering is disabled, but the switched view script (in this case, WML) is not used. This is resulting in a page being sent with a WML header, but the XHTML view script (minus the layout). It seems to be inconsistent... I can't reproduce it on my machine, but on the test servers it happens every time.


Posted by Rob Allen (rob) on 2012-11-20T20:53:21.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

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.