Similar to Dragonl, I store my menu links in an array (almost exactly the same structure incidentally) and have developed a helper to write out css menus, which also highlights the current page.
At the moment I've kept the array hardcoded in my element because it doesn't change often, but it could easily be generated from a controller dynamically. Cheers, Adam On Dec 5, 9:09 am, DragonI <[EMAIL PROTECTED]> wrote: > I store menu and submenu links in a config file as an array which is > loaded and cached in beforeRender in app_controller. I have my own > menu helper which displays the menu in an element > > $config['mainMenu'] = array( > 1 => array( > 'title' => 'Home', > 'url' => '/', > 'desc' => 'Home', > ), > 2 => array( > 'title' => 'Search', > 'url' => '/search/', > 'desc' => 'Search', > ), etc.... > > On Dec 4, 4:52 pm, kristofer <[EMAIL PROTECTED]> wrote: > > > I usually pull in an element to handle dynamic navigation. > > > On Dec 4, 4:46 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > > > > Hi there, > > > > I've got a quite generic question... do you usually hardcode your menu > > > links [in your views] when developing something with cake, or do you > > > implement something like link management models or something? What's > > > the usual way here in your opinion? > > > > Greetings > > > > Arne --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
