2010-12-15 03:58:27 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Routes file
|
|
|
|
*
|
|
|
|
* Routes for test app
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP : Rapid Development Framework (http://cakephp.org)
|
2011-05-29 21:31:39 +00:00
|
|
|
* Copyright 2005-2011, Cake Software Foundation, Inc.
|
2010-12-15 03:58:27 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2011-05-29 21:31:39 +00:00
|
|
|
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc.
|
2010-12-15 03:58:27 +00:00
|
|
|
* @link http://cakephp.org CakePHP Project
|
2010-12-24 18:57:20 +00:00
|
|
|
* @package cake.tests.test_app.config
|
2010-12-15 03:58:27 +00:00
|
|
|
* @since CakePHP v 2.0
|
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
|
|
|
*/
|
|
|
|
|
|
|
|
Router::parseExtensions('json');
|
|
|
|
Router::connect('/some_alias', array('controller' => 'tests_apps', 'action' => 'some_method'));
|
|
|
|
Router::redirect('/redirect_me_now', 'http://cakephp.org');
|
|
|
|
Router::redirect('/redirect_me', array('controller' => 'tests_apps', 'action' => 'some_method'));
|