Even if I change the Router to this.

Router::connect('/',array('admin'=>false,'controller'=>'pages','action'=>'display','home'));

It still doesn't work.

On Thursday, 7 February 2013 21:38:05 UTC-5, cricket wrote:
>
> Do you have a route defined for /admin/something/index but not for 
> /something/index? 
>
> On Thu, Feb 7, 2013 at 4:06 PM, Mathew <nfosc...@yahoo.com <javascript:>> 
> wrote: 
> > Hi, 
> > 
> > I have a problem. When I call Router::parse('/something/index') it 
> returns 
> > an array which contains the prefix (i.e. 'admin'=>1) when called during 
> a 
> > request that has a prefix set. 
> > 
> > That's a problem, because the string '/something/index' doesn't have the 
> > prefix set. It should return it if '/admin/something/index' was used. 
> > 
> > Is this a bug or by design, and if by design, please explain why. 
> > 
> > -- 
> > Like Us on FaceBook https://www.facebook.com/CakePHP 
> > Find us on Twitter http://twitter.com/CakePHP 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "CakePHP" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to cake-php+u...@googlegroups.com <javascript:>. 
> > To post to this group, send email to cake...@googlegroups.com<javascript:>. 
>
> > Visit this group at http://groups.google.com/group/cake-php?hl=en. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to