Re: admin routing.prefix
Sounds like you have "private function admin_login()" in
UsersController. Try "public function admin_login()" instead.
On Jun 13, 7:05 pm, Davor Ilic <webfa...@gmail.com> wrote:
> with this i mean this link:http://groups.google.com/group/cake-php/browse_thread/thread/4a445f48...
>
> 2010/6/14 Davor Ilic <webfa...@gmail.com>
>
>
>
> > i´ve forgot to say i´ve try this but i only get this issue to ad an method
> > with : admin_admin_login()
>
> > and if i comment Configure::write('Routing.prefixes', array('admin')); it
> > works but when it try to login it gives me back the login site again i do
> > not know what i am doing wrong...
>
> > 2010/6/14 Davor Ilic <webfa...@gmail.com>
>
> > Hi caker,
>
> >> i try to use the Prefix Route from cake to say which of my root the admin
> >> is but i have some issue to get to the right site because i do not wanna for
> >> the user to say them the hole root where they have to go like this
> >> /admin/users/login
>
> >> i just wanna say add in the after .com/ admin.
>
> >> i ask this because Route.prefix don´t allow me if i use this url:
> >>http://mysite.com/admin
>
> >> it gives me an error back:
>
> >> Private Method in UsersController
>
> >> *Error: **UsersController::**admin_login()* cannot be accessed directly.
> >> what i have to do to make it work?
>
> >> i also have this in my route :
>
> >> *Router::connect('/admin', array('controller' => 'users', 'action' =>
> >> 'admin_login'));*
>
> >> be accessed directly.
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