2005-06-23 08:32:04 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2010-05-30 14:29:32 +10:00
|
|
|
* Routes configuration
|
2006-02-18 23:42:21 +00:00
|
|
|
*
|
2005-06-23 08:32:04 +00:00
|
|
|
* In this file, you set up routes to your controllers and their actions.
|
2006-02-18 23:42:21 +00:00
|
|
|
* Routes are very important mechanism that allows you to freely connect
|
2013-10-07 23:17:58 -04:00
|
|
|
* different URLs to chosen controllers and their actions (functions).
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2017-06-10 23:33:55 +02:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
2017-06-11 00:10:52 +02:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
2013-02-08 21:22:51 +09:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2005-12-23 21:57:26 +00:00
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2017-06-11 00:10:52 +02:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2017-06-10 23:33:55 +02:00
|
|
|
* @link https://cakephp.org CakePHP(tm) Project
|
2011-10-14 15:06:36 -04:00
|
|
|
* @package app.Config
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2017-06-11 00:23:14 +02:00
|
|
|
* @license https://opensource.org/licenses/mit-license.php MIT License
|
2005-06-23 08:32:04 +00:00
|
|
|
*/
|
2015-09-25 17:25:35 +02:00
|
|
|
|
2005-06-23 08:32:04 +00:00
|
|
|
/**
|
2006-02-18 23:42:21 +00:00
|
|
|
* Here, we are connecting '/' (base path) to controller called 'Pages',
|
|
|
|
* its action called 'display', and we pass a param to select the view file
|
2011-06-19 20:28:40 -04:00
|
|
|
* to use (in this case, /app/View/Pages/home.ctp)...
|
2005-06-23 08:32:04 +00:00
|
|
|
*/
|
2006-08-12 13:02:51 +00:00
|
|
|
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
|
2005-06-23 08:32:04 +00:00
|
|
|
/**
|
2013-10-07 23:17:58 -04:00
|
|
|
* ...and connect the rest of 'Pages' controller's URLs.
|
2005-06-23 08:32:04 +00:00
|
|
|
*/
|
2006-08-12 13:02:51 +00:00
|
|
|
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
2011-07-16 23:36:30 -04:00
|
|
|
|
|
|
|
/**
|
2013-02-03 20:00:32 +01:00
|
|
|
* Load all plugin routes. See the CakePlugin documentation on
|
2011-07-18 21:30:18 -04:00
|
|
|
* how to customize the loading of plugin routes.
|
|
|
|
*/
|
|
|
|
CakePlugin::routes();
|
|
|
|
|
|
|
|
/**
|
2012-09-30 20:17:50 -04:00
|
|
|
* Load the CakePHP default routes. Only remove this if you do not want to use
|
2011-07-18 21:30:18 -04:00
|
|
|
* the built-in default routes.
|
2011-07-16 23:36:30 -04:00
|
|
|
*/
|
|
|
|
require CAKE . 'Config' . DS . 'routes.php';
|