like 3 different menu.ctp files (menu-admin.ctp, menu-manager.ctp, and menu-default.ctp) ?
On Jan 16, 2:47 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 16, 11:13 pm, Luke <[EMAIL PROTECTED]> wrote: > > > I am writing an application that has three user groups: admin, user, > > and photo manager. I want all three to have basically the same > > interface, but admins will obviously have more things available to > > them (ability to add things, edit things, etc), photo managers will be > > allowed to add / edit photos, and all users will be able to view just > > about anything in the system. I'm just wondering what the best way to > > go about displaying the menu to my uses is. Should I run a > > beforeFilter in my AppController that grabs all the user's permissions > > and stores them in the session? Then I could check the session to know > > what parts of the menu to display. Is this a good idea? If not, why? > > What would you do? > > I did that a long time ago on a small scale, result: awful > performance. > > Probably better to define, in whatever way suits you best, the 3 > permutations in separate elements and add logic to render the right > one. > > hth, > > AD --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
