> 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
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
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