You'd include the menu in the layout (views/layouts/default.ctp). To
keep it in a separate file, you can put it in an element (e.g. views/
elements/menu.ctp) and include that element in the layout with <?=
$this->renderElement('menu'); ?> .

To highlight the current menu item, you could use some algorithm that
compares the url's of the menu items with the current url. An example
is at 
http://debuggable.com/posts/macgyver-menu-for-cakephp-whats-the-active-menu-item:480f4dd6-c044-436e-bbde-4ed8cbdd56cb
. Personally, I just mark the menu item to be highlighted in each
controller action (e.g. $this->set('menu_current', 'News'); ) and then
in the menu element I highlight the menu with the name in
$menu_current .


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to