Thanks it is almost working now.. it works pretty much everywhere
except for pages like home.thtml.. Also when there is an error it
destriys the entire page and i don't see the messages anymore 0_o

On Feb 19, 9:04 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > Well what i want accomplish is pretty easy, I have a table
> > categories.. and i want to create links from the table categories in a
> >menu. And thismenuhas to be on every page no matter what the url is.
>
> hmm, easiest thing would be to do this in the beforeFilter of your
> app_controller.
>
> class AppController extends Controller
> {
>     // you need access to the Category model
>     // nb: you will need to change this to match your Model name
>     var $uses = array('Category');
>
>     function beforeFilter ()
>     {
>         $this->set ('menu_data', $this->Category->generateList ());
>     }
>
> }
>
> hth
>
> jon
>
> --
>
> jon bennett
> t: +44 (0) 1225 341 039 w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett


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

Reply via email to