Router::connect('/admin/logout', array('controller' => 'home',
'action' => 'logout', 'prefix'=>'admin'));

On Nov 20, 8:11 am, releod <[EMAIL PROTECTED]> wrote:
> Hey, just installed my first CakePHP application today.
>
> I am wondering how to get url to work in the browser:
> /admin/logout
>
> Here is my route:
> $Route->connect('/admin/logout', array('controller' => 'home',
> 'action' => 'admin_logout'));
>
> I get this error:
> Private Method in HomeController
> You are seeing this error because the private class method
> admin_logout should not be accessed directly
>
> My question is how do I get the url to look like /admin/logout, the
> logout method is simply going to end the session and redirect
> somewhere, so it does not require a view file.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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