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

2.5.5 2014-10-24 01:27 UTC

This package is auto-updated.

Last update: 2024-11-06 08:51:31 UTC


README

`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