Hi all,

Firstly, I'm new to CakePHP (and am mightlily impressed with it so
far!), and I did try to find an answer to what I'm about to ask, by
doing RTFM-ing. I have not found such an answer, so I'm asking it
here. I hope I'm not flogging a dead horse by doing so, or otherwise
go against the grain of this list...

Then: the question at hand, is that in virtually no time I have to
build a rather extensive system for performing elaborate online
questionaires, including detailed reporting capabilities using JPGraph
functions, user bases, etc. Sooo, little time for lots of things to
do, and therefore I really want to make use of the scaffolding
mechanism in order to handle the admin side of matters, and then just
create regular user views, where the end-users will never end up in a
scaffolded view.

So, my question basically winds down to how to best achieve this. What
I really want is (only explained for users, but valid for whatever
type of data is database driven) something like:
1-Use different user levels (I've got that covered in the users table
scheme).
2-Enable a login mechanism (for now, I'll leverage the tutorial code,
and change as needed).
3-If possible, code one UsersController, which allows for normal (i.e.
non-scaffolded) views for users of level 1 (i.e. normal users), and
scaffolded (admin routed?) views for users of levels 2 (i.e.
administrators).
4-Use the user level of the currently logged in user to switch between
these views, using a beforeFilter - checksession trick (as shown in
the authentication tutorial), but then actively choosing between
different routes too.

Step 3 and 4 are key here. I hope it's possible to easily switch
between routes, and have only the admin one using scaffolding and the
other route not.

Can anyone tell me if this is possible (and if so: how to achieve
this), or if there are better ways to achieve (almost) the same
functionality?

Tnx in advance, and cheers,
MM


--~--~---------~--~----~------------~-------~--~----~
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