I would build 1 element, for the specific part of admin level .. This
element would be included in the view in an "if statement".. Maybe
it's not 100% MVC, but it's (to me) a very convenient way.
hth

On Dec 28, 10:36 pm, CodeHooligans <[EMAIL PROTECTED]> wrote:
> Happy Holidays all,
>
> Just getting into Cake this week thanks to some slow holidays.
>
> I'm building a Residence Directory system and using Cake. I've built
> everything initially using bake. The application is coming along well
> thanks to some examples from the IBM site and downloaded modules on
> the Bakery site.
>
> So my question: I basically have 2 levels of authenticated users. I
> want one view for the general user. But I want a different view for
> admin-level users.
>
> The Views are not all that different. The admin-level user would see
> more fields on the list, edit, add forms. Using PHP outside a MVC
> framework, I would generally wrap the extra admin fields in some
> conditional statements and move on. But wanted to ask what the
> 'correct' MVC method for this would be.
>
> My apologies if this is a basic question.
>
> Regards,
> Paul
--~--~---------~--~----~------------~-------~--~----~
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