On May 28, 12:44 pm, Jon Bennett <[email protected]> wrote:
> hi,
>
> In 1.3, how hard is it to route a controller action to
> /slug/child-slug/grandchild-slug and keep other, automatic routing in
> place? Do you still need to explicitly route all other controllers and
> their actions?
>
> I've done:
>
> Router::connect('/articles/:action',
>         array('controller'=>'articles'),
>         array('action' => 
> 'admin_add|admin_edit|admin_index|admin_delete|admin_status')
> );
>

The above route is equivalent to the default route - i.e. it's the
same as not having it defined (incidentally what are your admin_*
functions doing defined like that?¿? - you're disabling the automatic
admin/prefix protection by doing that.)

> previously, but would be even better if I could do the above but skip
> all the method names.

Well, previously - as now - you didn't need to, and you can if you
want - as before - make routes more selective/less greedy with the 3rd
parameter.

hth,

AD

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

Reply via email to