Thanks for replying.

I have only 1 route defined.

Router::connect('/',array('controller'=>'pages','action'=>'display','home'));
require CAKE . 'Config' . DS . 'routes.php';

If I run Router::parse('/') from an admin prefix then I get this URL back 
'http://cgtag.local/admin/pages/display/home' which doesn't exist.

It's actually the part of the website that calculates the exit URL for the 
admin section. In this example it's to just the homepage, but in other 
cases it might not be.

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 <[email protected] <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 [email protected] <javascript:>. 
> > To post to this group, send email to [email protected]<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 [email protected].
To post to this group, send email to [email protected].
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