Re: [fw-general] Zend Layout and _forward

2008-08-29 Thread pvechi
Tobias, Thank you again. I tried the _forward but I only get the 'nav' on the view and not the 'content'. Same problem as before. :( My index controller has this: class Customers_IndexController extends Zend_Controller_Action { function init() {

Re: [fw-general] Zend Layout and _forward

2008-08-28 Thread vladimirn
Not so hard i think. If i understud well, you should use $this-_forward at the end of you action. So lets say you have IndexController.php and in this controller you want to use forward ?php class IndexController extends Zend_Controller_Action { public function indexAction() { //there

Re: [fw-general] Zend Layout and _forward

2008-08-28 Thread Tobias Schifftner
Hi Pete, I actually did a start for a dynamic navigation. I never really finished (and believe me, it's been a while) because I didn't really need it anymore . But may be it gives you a hint. Well, the navigation has to be on every page, why not use a plugin for handeling?!? class Navigation

[fw-general] Zend Layout and _forward

2008-08-27 Thread pvechi
Hi there again, I am creating the HTML in my application using Zend Layout using a similar method shown in the Zend documentation. Here is an extract from the documentation: As an example, let's say your code first hits FooController::indexAction(), which renders some content to the default

Re: [fw-general] Zend Layout and _forward

2008-08-27 Thread Tobias Schifftner
Normally you should not always forward to an other action. Only if you really need to do so. Not all the time... Well, as I can see you use already ?= $this-layout()-content; ?, so all other $this-view variables will be within that. In your view script view/scripts/action.phtml you can just use