2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2011-07-19 01:33:14 +00: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
|
|
|
|
* different urls to chosen controllers and their actions (functions).
|
|
|
|
*
|
2010-10-03 16:38:58 +00:00
|
|
|
* PHP 5
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2009-11-06 06:46:59 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2013-02-08 11:59:49 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2013-02-08 11:59:49 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2009-11-06 06:00:11 +00:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package app.Config
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2009-11-06 06:51:51 +00:00
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
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-20 00:28:40 +00: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'));
|
|
|
|
/**
|
|
|
|
* ...and connect the rest of 'Pages' controller's urls.
|
|
|
|
*/
|
|
|
|
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
2011-07-19 01:33:14 +00:00
|
|
|
|
|
|
|
/**
|
2012-12-22 22:48:15 +00:00
|
|
|
* Load all plugin routes. See the CakePlugin documentation on
|
2011-07-19 01:33:14 +00:00
|
|
|
* how to customize the loading of plugin routes.
|
|
|
|
*/
|
|
|
|
CakePlugin::routes();
|
|
|
|
|
|
|
|
/**
|
2012-10-01 00:17:50 +00:00
|
|
|
* Load the CakePHP default routes. Only remove this if you do not want to use
|
2011-07-19 01:33:14 +00:00
|
|
|
* the built-in default routes.
|
|
|
|
*/
|
|
|
|
require CAKE . 'Config' . DS . 'routes.php';
|