Re: 1.3 prefix routing.

2010-05-28 Thread Jon Bennett
> In your controller, the current prefix is stored in $this- >>params['prefix']. It's also available through Router::currentRoute()- >>defaults['prefix']. Cheers - not sure that's relevant though :p J > > On May 27, 6:45 pm, aleph1 wrote: >> I can't see how to retrieve the current prefix that i

Re: 1.3 prefix routing.

2010-05-28 Thread Andy Dirnberger
In your controller, the current prefix is stored in $this- >params['prefix']. It's also available through Router::currentRoute()- >defaults['prefix']. On May 27, 6:45 pm, aleph1 wrote: > I can't see how to retrieve the current prefix that is being used for > routing purposes. > > For example, if

Re: 1.3 prefix routing.

2010-05-27 Thread Sam Sherlock
Configure::read('Routing.admin'); in 1.3 => Configure::read('Routing.prefixes.0'); you can get an array of prefixes for building routes in routes.php Configure::read('Routing.prefixes'); - S On 27 May 2010 23:45, aleph1 wrote: > I can't see how to retrieve the current prefix that is being us