Re: Route is overwriting routes of same controller

2016-01-03 Thread John Andersen
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

Route is overwriting routes of same controller

2015-12-28 Thread Sven Mäurer
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