Hi,
I am currently adapting my old code to ZF 1.5.1. I have calls to navigational elements in my Zend_Layout default view script like this:
PHP Code:
echo $this->action('main', 'menu', 'auth');
echo $this->action('main', 'menu', 'data');
The second call invokes - as it contains a dynamic menu - other action view helper calls:
PHP Code:
echo $this->action('sub1', 'menu', 'data');
echo $this->action('sub2', 'menu', 'data');
echo $this->action('sub3', 'menu', 'data');
echo $this->action('sub4', 'menu', 'data');
The strange thing is, that the last call of the "inner" actions (sub4) is displayed two times in the view. It looks like the last result is forwarded to the top level and displayed as result of the outer action call.
Is that a bug or a feature? Is there any way to suppress this? Is there a better approach to this?
I really appreciate any kind of input and thx in advance!