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
-~----------~----~----~----~------~----~------~--~---