Do you use the Auth component ?
On Fri, May 28, 2010 at 9:07 AM, cronet <[email protected]> wrote:
> hm...
>
> i solved my problem with the following route configuration:
>
> Router::connect('/aktivieren/*', array('controller' => 'users',
> 'action' => 'activate', 'admin'=>null));
>
>
>
> I don't know why cake behave this way, because in the manual there's a
> note to user admin=>false, not admin=>null in the html link array...
>
>
>
> On 28 Mai, 07:47, cronet <[email protected]> wrote:
> > that does not solve the problem...
> >
> > Router::connect('/aktivieren', array('controller' => 'users', 'action'
> > => 'activate', 'admin'=>false, 'prefix'=>false ));
> > Router::connect('/aktivieren/', array('controller' => 'users',
> > 'action' => 'activate', 'admin'=>false, 'prefix'=>false ));
> > Router::connect('/aktivieren/*', array('controller' => 'users',
> > 'action' => 'activate', 'admin'=>false, 'prefix'=>false ));
> >
> > I tried all combinations and accessing
> > /aktivieren
> > /aktivieren/
> > /aktivieren/blabla
> >
> > it ends up in "admin_activate" not "activate"
> >
> > On 28 Mai, 06:24, Bogdan Bursuc <[email protected]> wrote:
> >
> > > You need to define the master route, also:
> >
> > > Router::connect('/aktivieren/', ...); That's the router you access when
> you
> > > enter /aktivieren.
> >
> > > On Fri, May 28, 2010 at 2:05 AM, cronet <[email protected]> wrote:
> > > > Hey,
> >
> > > > i defined the following route:
> >
> > > > Router::connect('/aktivieren/*', array('controller' =>
> 'users',
> > > > 'action' => 'activate', 'admin'=>false));
> >
> > > > But everytime when I try to access /aktivieren cake routes me to
> > > > admin_activatie...
> >
> > > > Here ar some vars from pr($this)
> >
> > > > [action] => admin_activate
> > > > [uses] =>
> > > > [params] => Array
> > > > (
> > > > [named] => Array
> > > > (
> > > > )
> >
> > > > [pass] => Array
> > > > (
> > > > )
> >
> > > > [controller] => users
> > > > [action] => admin_activate
> > > > [admin] =>
> > > > [prefix] => admin
> > > > [plugin] =>
> > > > [form] => Array
> > > > (
> > > > )
> >
> > > > [url] => Array
> > > > (
> > > > [url] => aktivieren
> > > > )
> >
> > > > )
> >
> > > > Why I get always to admin, even when i set admin=>false ?
> >
> > > > Regards,
> > > > AxlF
> >
> > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> 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]<cake-php%[email protected]>>For
> more options, visit this group at
> > > >http://groups.google.com/group/cake-php?hl=en
> >
> > > --
> > > Bogdan Iulian Bursuc
>
> 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
>
--
Bogdan Iulian Bursuc
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