Issues

ZF-5240: ZF tries to use default viewscript when forwarding to an action instead of using one specified in viewRenderer helper of that action.

Issue Type: Bug Created: 2008-12-13T01:48:41.000+0000 Last Updated: 2011-10-17T19:32:07.000+0000 Status: Resolved Fix version(s): Reporter: Witek Radomski (witekr) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_View

  • zf-crteam-padraic
  • zf-crteam-priority

Related issues: - ZF-3447

Attachments:

Description

When forwarding to an action that changes the default viewscript via $this->_helper->viewRenderer('viewscriptname'), ZF tries to use the default viewscript for that new action. I didn't have a viewscript with the default name "index.phtml" for the indexAction that I forwarded to, so ZF threw exception:

Zend_View_Exception: script 'newaction/index.phtml' not found in path...

..when it should be using 'viewscriptname.phtml' since in the indexAction I have the line: $this->_helper->viewRenderer('viewscriptname');

Comments

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-12-13T17:49:54.000+0000

set component and auto reassign

Posted by Artur Bodera (joust) on 2011-08-26T11:16:24.000+0000

There might be some problem with the order of operations. Can you please provide us with test code?

Ideally, code for the whole controller that misbehaves.

Posted by Adam Lundrigan (adamlundrigan) on 2011-10-17T19:31:02.000+0000

Duplicate of ZF-3447. Please direct updates to that ticket.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts