2005-05-22 23:24:09 +00:00
|
|
|
<?PHP
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
// + $Id$
|
|
|
|
// +------------------------------------------------------------------+ //
|
|
|
|
// + Cake <https://developers.nextco.com/cake/> + //
|
|
|
|
// + Copyright: (c) 2005, Cake Authors/Developers + //
|
|
|
|
// +------------------------------------------------------------------+ //
|
|
|
|
// + Licensed under The MIT License + //
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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).
|
2005-06-05 23:41:46 +00:00
|
|
|
*
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.config
|
2005-05-22 23:24:09 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2005-05-29 19:43:59 +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
|
|
|
|
* to use (in this case, /app/views/pages/home.thtml)...
|
2005-05-22 23:24:09 +00:00
|
|
|
*/
|
2005-05-29 19:43:59 +00:00
|
|
|
$Route->connect ('/', array('controller'=>'Pages', 'action'=>'display', 'home'));
|
2005-05-22 23:24:09 +00:00
|
|
|
|
|
|
|
/**
|
2005-05-29 19:43:59 +00:00
|
|
|
* ...and connect the rest of 'Pages' controller's urls.
|
2005-05-22 23:24:09 +00:00
|
|
|
*/
|
2005-05-29 19:43:59 +00:00
|
|
|
$Route->connect ('/pages/*', array('controller'=>'Pages', 'action'=>'display'));
|
2005-05-22 23:24:09 +00:00
|
|
|
|
|
|
|
/**
|
2005-05-29 19:43:59 +00:00
|
|
|
* Then we connect url '/test' to our test controller. This is helpfull in
|
|
|
|
* developement.
|
2005-05-22 23:24:09 +00:00
|
|
|
*/
|
2005-05-29 19:43:59 +00:00
|
|
|
$Route->connect ('/test', array('controller'=>'Tests', 'action'=>'test_all'));
|
2005-05-22 23:24:09 +00:00
|
|
|
|
2005-05-29 19:43:59 +00:00
|
|
|
?>
|