I want to use the router of cake for friendly urls. My urls are of this type:
http://domain/some_text/categories/view/4/5/6
http://domain/other_text/articles/read/new-stuff
http://domain/xyz_text/charts/list/latest/10
The basic idea is that the first part of the url (some_text, other_text, xyz_text)
will be forwarded as a parameter to the action, but not as a named parameter.
- Can I build such route in a single route?
- Yes/No - How?
- Is it the way to achieve that goal?
- How do I create a link to such route, using
HtmlHelper:link()
method? (some tests gave mehttp://domain/Controller/action/params../some_name:some_text
...)