You don't have to use the admin prefix, but it might help if you have two
types of authenticated users, who might see different versions of an edit
action on a controller.
For example, in one website I did, we had the administrators who would
authenticate to edit the site, and we had website members who would
authenticate to login, and change their profiles, etc.
So we had a Users controller with a admin_edit action for the administrator
so the admin could edit the users via the admin UI, and an edit action for
members that wold edit their own profile via the front end UI.
If you only have one type of authenticating user, and want to keep it
simple, then skip prefix routing. However, if you think that you might
have two types of authenticating users (admins and members), then use the
prefix routing.
Regards
Reuben Helms
On Thursday, 15 May 2014 02:11:49 UTC+10, bobkill01 wrote:
>
> I look at the possibilities offered by CakePHP for authenticated
> applications but I do not understand in what cases I should use this or
> that rule among the three listed below.
>
> Simple Authentication and Authorization Application
> Simple Acl controlled Application
> Simple Acl controlled Application - part 2
>
> For example, if I want to create a simple site with an administrator who
> manages the site and frontend part. I have to use what solution? Can I
> manage a website with standard methods in the controller (edit, add ...) or
> I have to use ... admin_edit in core.php *** ? I am a beginner, thank you
> for your understanding.
>
> Thank's
>
>
> ***
> * Set to an array of prefixes you want to use in your application. Use for
> * admin or other prefixed routes.
> *
> * Routing.prefixes = array('admin', 'manager');
> *
> * Enables:
> * `admin_index()` and `/admin/controller/index`
> * `manager_index()` and `/manager/controller/index`
> *
> */
> //Configure::write('Routing.prefixes', array('admin'));
>
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.