I've found the solution.
In the beforeFilter() instead of putting this:
$this->Auth->loginAction = array
('controller'=>'users','action'=>'login');

Put the following:
$this->Auth->loginAction = array
('plugin'=>'users','controller'=>'users','action'=>'login');

On 12 sep, 23:35, Bart <[email protected]> wrote:
> Hello,
>
> I'm creating apluginto act as a Blog.
> The main controller has the same name as theplugin(app/plugins/blog/
> controllers/blog_controller.php)
> I'm trying to use theAuthcomponent with thisplugin. However, when a
> user is not logged in, the component redirects me to the following
> address:
> "http://example.com/blog/users/login"; instead of "http://example.com/
> users/login"
>
> How could I solve this?
>
> Thanks,
> Bart
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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