On Mar 27, 12:17 am, "fr3nch13" <[EMAIL PROTECTED]> wrote:
> Ir Even better just bake it... if you can't bake it then:
>
> (i haven't played with 1.2 yet, but unless it was drastically changed
> from 1.1.x, this is how you i do it:)
>
> change:
> turn on admin routing, then:http://www.domain.com/admin/controller/action
>
> class ControllerController extends AppController
> {
>     function admin_index()
>     {
>         $this->set('controller',$this->Model->findAll());
>     }
>     function admin_action()
>     {
>         $this->checkSession(); // a function in the AppController, app/
> app_controller.php which checks the user is logged in and has
> permissions
     <snip>

     FYI, I do not find checkSession anywhere in my 1.2. Looks like
that need to Auth component instead, but I couldn't yet figured out it
and it's doc.

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/


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