The easiest way I've found, if it's totally global is:
in the app_controller, in before_filter do a $this->set('categories',
$this->Categories->find("all")); (make sure that you have a $uses =
'Category' (i believe that's the right syntax, and I also think there
is a better way to do this, I just don't remember it).
Then in the layout, use $categories however you want too.
You could also then pull the menu off into an element if you desire.
If you only want it to be on one controller, put the line in the
before filter of just that controller.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---