Hi,
ok, call me stupid, but i dont get it.
in the controller action i use:
PHP Code:
$this->view->foo="bar"
in the view script is
PHP Code:
echo $this->foo;
in my layout template
PHP Code:
echo $this->layout()->content
so far so fine. working like intended. BUT:
Zend Framework: Documentation reads:
Quote:
|
As an example, let's say your code first hits FooController::indexAction(), which renders some content to the default response segment, and then forwards to NavController::menuAction(), which renders content to the 'nav' response segment. Finally, you forward to CommentController::fetchAction() and fetch some comments, but render those to the default response segment as well (which appends content to that segment). Your view script could then render each separately:
|
ok i can have (in layout template)
PHP Code:
echo $this->layout()->nav
but how is 'nav' be set ? i know of the way by setting "$this->getResponse()->append(). But so i can not include another action (like described in the doc). In my controller init i use
PHP Code:
$this->_helper->actionStack('menu','nav');
but the menu action would write to "default", how can it write to the 'nav response object' ?
TIA
Rufinus