Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / webtt / app / config / routes.php
blob7f5ab74fea33bfafe385cc7291795c434e587a71
1 <?php
2 /**
3 * Routes configuration
5 * In this file, you set up routes to your controllers and their actions.
6 * Routes are very important mechanism that allows you to freely connect
7 * different urls to chosen controllers and their actions (functions).
9 * PHP versions 4 and 5
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
12 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * Licensed under The MIT License
15 * Redistributions of files must retain the above copyright notice.
17 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
18 * @link http://cakephp.org CakePHP(tm) Project
19 * @package cake
20 * @subpackage cake.app.config
21 * @since CakePHP(tm) v 0.2.9
22 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
24 /**
25 * Here, we are connecting '/' (base path) to controller called 'Pages',
26 * its action called 'display', and we pass a param to select the view file
27 * to use (in this case, /app/views/pages/home.ctp)...
29 Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
30 /**
31 * ...and connect the rest of 'Pages' controller's urls.
33 Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
34 /**
35 * Connect 'Pages' controller's urls for admin prefix.
37 Router::connect('/admin/pages/*', array('controller' => 'pages', 'action' => 'display', 'admin' => true));
38 Router::connect('/admin/pages', array('controller' => 'pages', 'action' => 'display', 'admin' => true, 'home'));
39 Router::connect('/admin', array('controller' => 'pages', 'action' => 'display', 'admin' => true, 'home'));