2005-06-23 08:32:04 +00:00
|
|
|
<?php
|
2005-08-21 06:49:02 +00:00
|
|
|
/* SVN FILE: $Id$ */
|
2005-06-23 08:32:04 +00:00
|
|
|
/**
|
2005-08-21 06:49:02 +00:00
|
|
|
* Short description for file.
|
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
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
2007-02-02 10:39:45 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
2008-01-01 22:18:17 +00:00
|
|
|
* Copyright 2005-2008, Cake Software Foundation, Inc.
|
2006-05-26 05:29:17 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
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
|
|
|
*
|
2006-02-18 23:42:21 +00:00
|
|
|
* @filesource
|
2008-01-01 22:18:17 +00:00
|
|
|
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
|
2007-02-02 10:39:45 +00:00
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
2006-05-26 05:29:17 +00:00
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.app.config
|
2007-02-02 10:39:45 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2006-05-26 05:29:17 +00:00
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
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
|
2005-06-23 08:32:04 +00:00
|
|
|
* to use (in this case, /app/views/pages/home.thtml)...
|
|
|
|
*/
|
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'));
|
2005-06-23 08:32:04 +00:00
|
|
|
/**
|
|
|
|
* Then we connect url '/test' to our test controller. This is helpfull in
|
|
|
|
* developement.
|
|
|
|
*/
|
2006-08-12 13:02:51 +00:00
|
|
|
Router::connect('/tests', array('controller' => 'tests', 'action' => 'index'));
|
2006-05-26 05:29:17 +00:00
|
|
|
?>
|