I have approached as francky06l said. When I moved to 1.2 I found that
using the builtin admin functionality of bake was very nice. It simply
replecates the scaffold views and methods with your choice of prefix, in
my case admin_ . So after my initial bake, I go in and strip the
"public" views and leave the admin views pretty much stock.
HTH
On Fri, 2007-12-28 at 15:25 -0800, francky06l wrote:
> 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
> >
Thanks,
Ronald Chaplin
Owner - T73 Software and Designs
________________________________________________________________________
http://t73-softdesign.com/
We'll Make All Of Your Wildest
e-Commerce Dreams Come True!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---