2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2011-07-18 21:33:14 -04:00
|
|
|
* Routes configuration
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* In this file, you set up routes to your controllers and their actions.
|
|
|
|
* Routes are very important mechanism that allows you to freely connect
|
2013-04-29 11:05:17 +02:00
|
|
|
* different URLs to chosen controllers and their actions (functions).
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2009-11-06 17:00:11 +11:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2011-07-26 01:46:14 -04:30
|
|
|
* @package app.Config
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2013-05-31 00:11:14 +02:00
|
|
|
|
2008-05-30 11:40:08 +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)...
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
|
|
|
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
|
|
|
|
/**
|
2013-04-29 11:05:17 +02:00
|
|
|
* ...and connect the rest of 'Pages' controller's URLs.
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
|
|
|
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
2011-07-18 21:33:14 -04:00
|
|
|
|
|
|
|
/**
|
2012-12-22 23:48:15 +01:00
|
|
|
* Load all plugin routes. See the CakePlugin documentation on
|
2011-07-18 21:33:14 -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:33:14 -04:00
|
|
|
* the built-in default routes.
|
|
|
|
*/
|
|
|
|
require CAKE . 'Config' . DS . 'routes.php';
|