Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 833 Bytes

README.md

File metadata and controls

27 lines (15 loc) · 833 Bytes

Controller prefix plugin for CakePHP

`Controller name prefix' custom route plugin for CakePHP

Build Status

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