If you use a similar idea to othAuth, and put users into groups - you could show a menu either based on the users group, or the access level.
Some psudocode would be like: if ($this->User->level = 0) { output ('login') } else if ($this->User->level = 100) { output (' regular menu') } else if ($this->User->level = 200) { output ('admin menu') } Tane On 5/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have a website and i want to use a specific navigation menu but i > want the links to depend on the state.. Basically there are 1 of the > different navigation menus i want to render, > 1. no user logged in > 2. regular user logged in > 3. admin user logged in > > Currently i have a user model and the appropriate controllers and > views. I figured out how to enforce authentication and what not on the > pages, however i am unsure what a good way of supplying the navigation > menu would be for each. > > Any ideas? I was thinking some kind of a ocmponent or something but > i'm not sure how to use those.. > > Thanks > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---