Currently I’m developing an application with CakePHP and I want to change links. In default operation links works like:
website.com/controller/method/argument-what-we-want
because of MVC structure but, I want to change this link and I want to make appear links like:
website.com/shows/walking-dead
What am I have to do to make links something like that?
You could either call your controller shows and your action walking-dead, Or you can add a new route in routes.php
The first paremeter in connect() even supports wild cards (*)
EDIT
If at the moment your URLs look like /shows/view/walking-dead
You can add a new route like:
Which will let you use this URL: /shows/walking-dead