mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
7cfa0116f4
This statement does not serve a purpose anymore. In a long forgotten world it indicated the main version number of PHP which the code in the file was compatible to. http://pear.php.net/manual/en/standards.sample.php But since PHP 5.1 and later this is only marginally true. Thus I propose to remove it from CakePHP.
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Routes configuration
|
|
*
|
|
* In this file, you set up routes to your controllers and their actions.
|
|
* Routes are very important mechanism that allows you to freely connect
|
|
* different URLs to chosen controllers and their actions (functions).
|
|
*
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
|
* @package app.Config
|
|
* @since CakePHP(tm) v 0.2.9
|
|
*/
|
|
|
|
/**
|
|
* Here, we are connecting '/' (base path) to controller called 'Pages',
|
|
* its action called 'display', and we pass a param to select the view file
|
|
* to use (in this case, /app/View/Pages/home.ctp)...
|
|
*/
|
|
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
|
|
/**
|
|
* ...and connect the rest of 'Pages' controller's URLs.
|
|
*/
|
|
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
|
|
|
/**
|
|
* Load all plugin routes. See the CakePlugin documentation on
|
|
* how to customize the loading of plugin routes.
|
|
*/
|
|
CakePlugin::routes();
|
|
|
|
/**
|
|
* Load the CakePHP default routes. Only remove this if you do not want to use
|
|
* the built-in default routes.
|
|
*/
|
|
require CAKE . 'Config' . DS . 'routes.php';
|