No it shouldn´t point every time to admin/login why i should do this :) it should look like admin/view, admin/edit or something else after he is logged in but this isn´t working because whatever i tell (admin_index or admin_login) action or something else it returns the issue i have....
thx 2010/6/14 Sam <[email protected]> > You should specify the route without the prefix in the action name.. > the routing prefix is passed as a separate parameter. > > Try: > *Router::connect('/admin', array('controller' => 'users', 'action' => > 'login', 'admin' => true)); > > > However, do you really want /admin to point to the login page even if > your users are already logged in? If you set up /admin to point to a > different controller/action and are using the Auth component, any > attempts to go to /admin will automatically route the user to your > login page if they are not logged in. > > On Jun 13, 8:15 pm, Davor Ilic <[email protected]> wrote: > > i thought it too but i didn´t use private function and i try this but it > > gives the same issue back > > > > 2010/6/14 Andy Dirnberger <[email protected]> > > > > > > > > > Sounds like you have "private function admin_login()" in > > > UsersController. Try "public function admin_login()" instead. > > > > > On Jun 13, 7:05 pm, Davor Ilic <[email protected]> wrote: > > > > with this i mean this link: > > >http://groups.google.com/group/cake-php/browse_thread/thread/4a445f48. > .. > > > > > > 2010/6/14 Davor Ilic <[email protected]> > > > > > > > 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 <[email protected]> > > > > > > > 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 sitehttp://cakeqs.organd 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 [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<cake-php%[email protected]> > <cake-php%[email protected] om>For more options, visit this > group at > > >http://groups.google.com/group/cake-php?hl=en > > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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 [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
