|
|
@@ -1,10 +1,5 @@ |
|
|
<?php
|
|
|
/**
|
|
|
- * Plugin short route, that copies the plugin param to the controller parameters
|
|
|
- * It is used for supporting /:plugin routes.
|
|
|
- *
|
|
|
- * PHP5
|
|
|
- *
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
|
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
*
|
|
@@ -13,21 +8,21 @@ |
|
|
*
|
|
|
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
|
|
- * @package Cake.Routing.Route
|
|
|
* @since CakePHP(tm) v 1.3
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
|
|
*/
|
|
|
App::uses('CakeRoute', 'Routing/Route');
|
|
|
|
|
|
/**
|
|
|
- * Plugin Short Route class
|
|
|
- *
|
|
|
+ * Plugin short route, that copies the plugin param to the controller parameters
|
|
|
+ * It is used for supporting /:plugin routes.
|
|
|
+ *
|
|
|
* @package Cake.Routing.Route
|
|
|
*/
|
|
|
class PluginShortRoute extends CakeRoute {
|
|
|
|
|
|
/**
|
|
|
- * Parses a string url into an array. If a plugin key is found, it will be copied to the
|
|
|
+ * Parses a string url into an array. If a plugin key is found, it will be copied to the
|
|
|
* controller parameter
|
|
|
*
|
|
|
* @param string $url The url to parse
|
|
@@ -43,7 +38,7 @@ public function parse($url) { |
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Reverse route plugin shortcut urls. If the plugin and controller
|
|
|
+ * Reverse route plugin shortcut urls. If the plugin and controller
|
|
|
* are not the same the match is an auto fail.
|
|
|
*
|
|
|
* @param array $url Array of parameters to convert to a string.
|
|
|
0 comments on commit
3974ea8