I want to remove controller name from url. It works for one controller but it does not work for more than one controller. Here is my code in Route.php:
Router::connect('videos/:action', array('controller' => 'videos'));
Router::connect('/:action', array('controller' => 'frontends'));
but when I try to access http://local.tbn24.dev/videos
it shows:
Error: The action videos is not defined in controller FrontendsController
which proves the above url refer
Router::connect('/:action', array('controller' => 'frontends'));
I want this url to reach the videos controller index function. How could I use both Route::connect()
configuration?