mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Moving plugin route loading to app/Config/routes.php
Its old position would end up with plugin routes being loaded after the core fallback routes.
This commit is contained in:
parent
c37c641b4a
commit
c8647b227a
2 changed files with 8 additions and 2 deletions
|
@ -32,6 +32,13 @@
|
||||||
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the CakePHP default routes.
|
* Load all plugin routes. See the CakePlugin documentation on
|
||||||
|
* how to customize the loading of plugin routes.
|
||||||
|
*/
|
||||||
|
CakePlugin::routes();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Load the CakePHP default routes. Remove this if you do not want to use
|
||||||
|
* the built-in default routes.
|
||||||
*/
|
*/
|
||||||
require CAKE . 'Config' . DS . 'routes.php';
|
require CAKE . 'Config' . DS . 'routes.php';
|
||||||
|
|
|
@ -204,7 +204,6 @@ class Dispatcher {
|
||||||
*/
|
*/
|
||||||
protected function _loadRoutes() {
|
protected function _loadRoutes() {
|
||||||
include APP . 'Config' . DS . 'routes.php';
|
include APP . 'Config' . DS . 'routes.php';
|
||||||
CakePlugin::routes();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue