arthurdent (2) [Avatar] Offline
#1
Hi,

I'm (very) new to the Zend Framework and try to learn it by transcribing the examples in the book and build my own project. It actually works fine but the menu doesn't work and I don't know, how to find the solution ...

The layout.phtml includes an echo $this->layout()->menu and the indexController.php includes a function menuController() (which isn't called! A debug-echo prints nothing). /application/views/scripts/index/ includes a menu.php file ...

I have no idea how to go on and repair the code ...

When/where does the ZF load the menu.phtml?
When/where does it call the function menuController()?

(BTW echo $this->layout()->content displays the content correctly.)

Please help me with, I'm desperately looking for a solution for weeks ...

Thanks smilie
Chris
akrabat (479) [Avatar] Offline
#2
Re: The menu ...
Hi,

Look for discussion on the ActionStack - around listing 4.7.

Regards,

Rob...
arthurdent (2) [Avatar] Offline
#3
Re: The menu ...
Thanks for your reply!

I've made a (very) stupid mistake. (I used HTML-comments to comment a PHP passage and so didn't recognize the PHP error ...)

Thanks,
Chris