routes.php

Go to the documentation of this file.
00001 <?php
00002 /* SVN FILE: $Id: routes.php 7820 2008-11-03 18:27:56Z renan.saddam $ */
00003 /**
00004  * Short description for file.
00005  *
00006  * In this file, you set up routes to your controllers and their actions.
00007  * Routes are very important mechanism that allows you to freely connect
00008  * different urls to chosen controllers and their actions (functions).
00009  *
00010  * PHP versions 4 and 5
00011  *
00012  * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
00013  * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
00014  *
00015  * Licensed under The MIT License
00016  * Redistributions of files must retain the above copyright notice.
00017  *
00018  * @filesource
00019  * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
00020  * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
00021  * @package       cake
00022  * @subpackage    cake.app.config
00023  * @since         CakePHP(tm) v 0.2.9
00024  * @version       $Revision: 7820 $
00025  * @modifiedby    $LastChangedBy: renan.saddam $
00026  * @lastmodified  $Date: 2008-11-03 13:27:56 -0500 (Mon, 03 Nov 2008) $
00027  * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
00028  */
00029 /**
00030  * Here, we are connecting '/' (base path) to controller called 'Pages',
00031  * its action called 'display', and we pass a param to select the view file
00032  * to use (in this case, /app/views/pages/home.ctp)...
00033  */
00034     Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
00035 /**
00036  * ...and connect the rest of 'Pages' controller's urls.
00037  */
00038     Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
00039 ?>

Generated on Sun Nov 22 00:30:52 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7