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
|
2005-06-23 08:32:04 +00:00
|
|
|
* different urls to chosen controllers and their actions (functions).
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2010-10-03 12:38:58 -04:00
|
|
|
* PHP 5
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2009-11-06 17:46:59 +11:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2011-05-29 17:31:39 -04:00
|
|
|
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2011-05-29 17:31:39 -04:00
|
|
|
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2009-11-06 17:00:11 +11:00
|
|
|
* @link http://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
|
2009-11-06 17:51:51 +11:00
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
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
|
|
|
/**
|
|
|
|
* ...and connect the rest of 'Pages' controller's urls.
|
|
|
|
*/
|
2006-08-12 13:02:51 +00:00
|
|
|
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
2011-07-16 23:36:30 -04:00
|
|
|
|
|
|
|
/**
|
2011-07-18 21:30:18 -04:00
|
|
|
* 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.
|
2011-07-16 23:36:30 -04:00
|
|
|
*/
|
|
|
|
require CAKE . 'Config' . DS . 'routes.php';
|