Re: cake_1.2.3.8166 and AdminAuth
I did find the solution: http://book.cakephp.org/view/172/Authentication
simonjpa@terra.com.br escreveu:
> Good Night,
>
> I'm trying to make the AdminAuth component work on cake_1.2.3.8166.
>
> I did uncomment Configure::write('Routing.admin', 'admin'); on line 67
> of the file app/config/core.php.
>
> On the file app/app_controller.php lines 49-50 I have this code:
>
> $this->AdminAuth->msgError = "Error.";
> //$this->AdminAuth->init($this);
>
>
> On the file app\controllers\components\admin_auth.php line 110, I had
> this code loadModel("Admin"), it was depreceated so I did change it to
> App::Import('Admin');. I don't know if I should use
> App::Import('Admin'); or ClassRegistry::init('Admin');?
>
> When I uncomment the line 50 of the file app/app_controller.php
> ( $this->AdminAuth->init($this); ). Instead of showing my site when I
> enter my domain, it shows directly the administrator.
>
> What I'm doing wrong?
>
>
> Regards,
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home