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 this menu has to be on every page no matter what the url is.

On Feb 19, 8:31 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > Ah i see, but normally you would load the function of the controller
> > through the url blog/post where index would be the function. But how
> > can you load this function without having it in the url?
> > I could think that maybe i can put it in the constructor of
> > appcontroller but this would not be really good code i think, what if
> > i wanted other things availalbe except the menu then i would need to
> > put it all in the constructor, so is there any other way to do this ?
>
> I would perhaps put a default value in the constructor of app_controller
> then a controller specific default in the constructor of each Controller
> then amend this on a method-by-method basis as required.
>
> it really depends on what you're trying to accomplish and the
> complexity of your app.
>
> 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