`Controller name prefix' custom route plugin for CakePHP
This custom route class prove controller name prefix route.
ex. /admin/users/edit => AdminUsersController::edit()
- Download this: http://github.com/k1LoW/controller_prefix/zipball/master
- Unzip that download.
- Copy the resulting folder to app/plugins
- Rename the folder you just copied to controller_prefix
Add the following code in routes.php
App::import('Lib', 'ControllerPrefix.ControllerPrefixRoute');
Router::connect('/admin/:controller/:action/*',
array('controllerPrefix' => 'admin'), array('routeClass' => 'ControllerPrefixRoute'));
under MIT Lisence