When you want to have a link like
http://www.domain.com/users/54/John
In Cakephp you have to rewrite it to:
http://www.domain.com/users/index/54/John
If you don't do this cakephp complains that within the users controller there is no action called 54. Is there no other way around this? Like to tell cakephp that when the second variable in the url is a number (so in this case 54), to refer it to the index function:
public function index($userId = null).
Another example is the url of this question. If it was cakephp, the url would look like:
http://stackoverflow.com/questions/index/18547494/avoid-having..
Is it in cakephp possible to do something like this?
http://stackoverflow.com/questions/18547494/avoid-having..
I hope this makes sense.