[ Index ] |
|
Code source de CakePHP 1.1.13.4450 |
1 <?php 2 /* SVN FILE: $Id: routes.php 4409 2007-02-02 13:20:59Z phpnut $ */ 3 /** 4 * Short description for file. 5 * 6 * In this file, you set up routes to your controllers and their actions. 7 * Routes are very important mechanism that allows you to freely connect 8 * different urls to chosen controllers and their actions (functions). 9 * 10 * PHP versions 4 and 5 11 * 12 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> 13 * Copyright 2005-2007, Cake Software Foundation, Inc. 14 * 1785 E. Sahara Avenue, Suite 490-204 15 * Las Vegas, Nevada 89104 16 * 17 * Licensed under The MIT License 18 * Redistributions of files must retain the above copyright notice. 19 * 20 * @filesource 21 * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. 22 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 23 * @package cake 24 * @subpackage cake.app.config 25 * @since CakePHP(tm) v 0.2.9 26 * @version $Revision: 4409 $ 27 * @modifiedby $LastChangedBy: phpnut $ 28 * @lastmodified $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $ 29 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 30 */ 31 /** 32 * Here, we are connecting '/' (base path) to controller called 'Pages', 33 * its action called 'display', and we pass a param to select the view file 34 * to use (in this case, /app/views/pages/home.thtml)... 35 */ 36 $Route->connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); 37 /** 38 * ...and connect the rest of 'Pages' controller's urls. 39 */ 40 $Route->connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); 41 /** 42 * Then we connect url '/test' to our test controller. This is helpfull in 43 * developement. 44 */ 45 $Route->connect('/tests', array('controller' => 'tests', 'action' => 'index')); 46 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 19:27:47 2007 | par Balluche grâce à PHPXref 0.7 |