Hello all,
Is it correct that, having multiple actions to be dispatched by the front
controller, the same template get rendered?
The context is as explained further: using the ActionStack plugin some 2
actions are added to be dispatched (it wil happen in the PostDispatch step of
the dispatch process, and these 2 actions are related to the menu generation).
Once the requested action is dispatched (the action requested in the URL), it
comes to the postdispatch part, to the 2 actions. The same view gets rendered
in those 2 actions, as the script path variable of the
Zend_Controller_Action_Helper_ViewRenderer has 2 paths, and the actions' name
are the same.
Is this a bug? How can it be avoided?
Some piece of code:
object(Zend_Controller_Action_Helper_ViewRenderer)#26 (18) {
["view"]=>
object(Zend_View)#39 (18) {
["_useViewStream:private"]=>
bool(true)
["_useStreamWrapper:private"]=>
bool(false)
["_path:private"]=>
array(3) {
["script"]=>
array(2) {
[0]=>
string(64)
"C:\wamp\www\ZF\application\modules\module2\admin\views\scripts\"
[1]=>
string(67)
"C:\wamp\www\ZF\application\modules\default\admin\views\scripts\"
}
["helper"]=>
array(0) {
}
["filter"]=>
array(0) {
}
}