Code: Select all
$this->render('action', 'segment');But I want to call an action in a different module and have it's output put into a different segment from the current action. According to the documention I should use this:
Code: Select all
// set the segment the view is rendered too
$this->_helper->viewRenderer->setResponseSegment('navigation');
// call action categeryNavigation in controller category in module products
$this->_forward('categoryNavigation', 'category', 'products');As far as I understand there is only one view instance so calling setResponseSegment should change the segment and thus put the output of the categoryNavigation action there. But it's not so: is there a new instance when this action is executed? Or is the instance of the view object reset in some way before the new action is executed?