k1low / controller_prefix
`Controller name prefix' custom route plugin for CakePHP
Fund package maintenance!
k1LoW
Installs: 6 667
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 6
Open Issues: 0
Type:cakephp-plugin
Requires
Requires (Dev)
- phpunit/phpunit: 3.7.*
README
`Controller name prefix' custom route plugin for CakePHP
Background
This custom route class prove controller name prefix route.
ex. /admin/users/edit => AdminUsersController::edit()
Installation
Install 'ControllerPrefix' by recipe.php , and set CakePlugin::load('ControllerPrefix');
Usage
Add the following code in routes.php
App::uses('ControllerPrefixRoute', 'ControllerPrefix.Routing/Route');
Router::connect('/admin/:controller/:action/*',
array('controllerPrefix' => 'admin'), array('routeClass' => 'ControllerPrefixRoute'));
License
under MIT Lisence