2005-05-16 23:14:37 +00:00
|
|
|
<?PHP
|
2005-05-17 01:31:36 +00:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
// + $Id$
|
|
|
|
// +------------------------------------------------------------------+ //
|
|
|
|
// + Cake <https://developers.nextco.com/cake/> + //
|
2005-05-17 21:39:28 +00:00
|
|
|
// + Copyright: (c) 2005, Cake Authors/Developers + //
|
2005-05-17 01:31:36 +00:00
|
|
|
// +------------------------------------------------------------------+ //
|
|
|
|
// + Licensed under The MIT License + //
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2005-05-16 23:14:37 +00:00
|
|
|
|
2005-05-17 01:31:36 +00:00
|
|
|
/**
|
2005-05-18 10:11:28 +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).
|
2005-06-05 23:41:46 +00:00
|
|
|
*
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.config
|
2005-05-18 10:11:28 +00:00
|
|
|
*/
|
2005-05-16 23:14:37 +00:00
|
|
|
|
2005-05-17 01:31:36 +00:00
|
|
|
/**
|
2005-06-02 19:37:06 +00:00
|
|
|
* Here we are connecting '/' (base path) to a controller called 'Pages',
|
|
|
|
* and its action called 'display'. We pass a parameter to select the view file
|
|
|
|
* to use (in this case, /app/views/pages/home.thtml).
|
2005-05-17 22:42:43 +00:00
|
|
|
*/
|
2005-05-29 19:43:59 +00:00
|
|
|
$Route->connect ('/', array('controller'=>'Pages', 'action'=>'display', 'home'));
|
2005-05-17 22:42:43 +00:00
|
|
|
|
2005-05-17 01:31:36 +00:00
|
|
|
/**
|
2005-06-02 19:37:06 +00:00
|
|
|
* ...and connect the rest of 'Pages' controller's URLs.
|
2005-05-17 22:42:43 +00:00
|
|
|
*/
|
2005-05-29 19:43:59 +00:00
|
|
|
$Route->connect ('/pages/*', array('controller'=>'Pages', 'action'=>'display'));
|
2005-05-16 23:14:37 +00:00
|
|
|
|
2005-05-23 23:08:43 +00:00
|
|
|
/**
|
2005-06-02 19:37:06 +00:00
|
|
|
* Then we connect url '/test' to our test controller. This is helpful in
|
|
|
|
* development.
|
2005-05-23 23:08:43 +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
|
|
|
?>
|