Skip to content

`Controller name prefix' custom route plugin for CakePHP

Notifications You must be signed in to change notification settings

9toon/controller_prefix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

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

  1. Download this: http://github.com/k1LoW/controller_prefix/zipball/master
  2. Unzip that download.
  3. Copy the resulting folder to app/plugins
  4. Rename the folder you just copied to controller_prefix

Usage

Add the following code in routes.php

App::import('Lib', 'ControllerPrefix.ControllerPrefixRoute');
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

Releases

No releases published

Packages

No packages published