k1low / controller_prefix
`Controller name prefix' custom route plugin for CakePHP
Package info
github.com/k1LoW/controller_prefix
Type:cakephp-plugin
pkg:composer/k1low/controller_prefix
Fund package maintenance!
2.5.5
2014-10-24 01:27 UTC
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