Skip to content

k1LoW/controller_prefix

Repository files navigation

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

About

`Controller name prefix' custom route plugin for CakePHP

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages