A simple way to do this is to use the admin routing.

so /admin/users/index would look like so:

<?
UsersController extents AppController
{
   ....
   function checkAdmin()
   {
      admin checking goes here (or put this method in your
app_controller.php for other controllers to use, or a component)
   }
   function admin_index()
   {
      $this->checkAdmin();
      other stuff here
   }
}
?>

This is how i do it in most of my apps for simple auth when acl seems
like using a sledge hammer to put a pin in a wall

French

On Sep 13, 11:06 am, DGPhoebus <[EMAIL PROTECTED]> wrote:
> I have been messing around with CakePHP for a little bit of time and
> most things are making sense.  I am having a hard time though trying
> to figure out how to implement an Administrative area of the site
> where site management takes place.  In the past I have created an /
> admin folder and password protected it and then built a complete
> backend for my sites.  Now it appears that I only have "Admin Routing"
> to get to "Admin" functions and it appears to me that most of the
> functions take place in the front end of the website by tagging a /
> admin/controller/action to the url.
>
>  Am I wrong?  Is there a way to separate the admin from the rest of
> the app?
> Do I have to implement ACL now to control actions? or can I still make
> a password protected directory?
>
> I love the CakePHP framework but I am stalling out on stuff like this
> and it is taking the "rapid" out of my "rapid development" :-)
> Someone please help!
>
> Thanks everyone.
>
> Daniel


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