Your route definition will direct all URL starting with /catalogs/ to be
directed to your catalog_groups controller.
Thus if you also have a catalogs controller, then no URL will reach that
controller.
Note that the URL you are redirecting to the catalog_groups controller,
does not need to
Is it right that all other routes of the same controller are overwritten if
I define the following?
Router::connect(
'/catalogs/:name',
['controller' => 'catalog_groups', 'action' => 'view'],
['name' => '[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*']
);
I am using CakePHP 2.7.*
--
Like Us on