Hi
I'm attempting to route this URL:
site.com/historic-places
to:
site.com/contents/view/category:5
(I am using named params).
I tried this:
Router::connect('/historic-places', array('controller' => 'contents',
'action' => 'view', 'category' => 5));
Because, when using the HTML link helper, you can pass named params in
the format `foo`=>`bar`. However, this doesn't appear to work with
routes.
I am currently using this:
Router::connect('/historic-places', array('controller' => 'contents',
'action' => 'view', 'category:' . 5));
(Concating `category:` and the number, to simulate a named param, but
this doesn't feel right.
Could someone please shed any light?
thanks.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php