Fixed special routing to support a top level url.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@613 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -27,25 +27,29 @@
|
|||||||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$default_path = array('controller' => 'maps', 'action' => 'view', '1');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Here, we are connecting '/' (base path) to our site map.
|
* Here, we are connecting '/' (base path) to our site map.
|
||||||
* It's hardcoded to map #1, but at some point we'll implement
|
* It's hardcoded to map #1, but at some point we'll implement
|
||||||
* a login mechanism and the default path will be to log on instead.
|
* a login mechanism and the default path will be to log on instead.
|
||||||
*/
|
*/
|
||||||
Router::connect('/', array('controller' => 'maps', 'action' => 'view', '1'));
|
Router::connect('/', $default_path);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Route for admin functionality
|
* Route for admin functionality
|
||||||
*/
|
*/
|
||||||
|
Router::connect('/admin',
|
||||||
|
array('admin_route' => true) + $default_path);
|
||||||
Router::connect('/admin/:controller/:action/*',
|
Router::connect('/admin/:controller/:action/*',
|
||||||
array('action' => null, 'admin_route' => true)
|
array('admin_route' => true, 'action' => null));
|
||||||
);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Route for development functionality
|
* Route for development functionality
|
||||||
*/
|
*/
|
||||||
|
Router::connect('/dev',
|
||||||
|
array('dev_route' => true) + $default_path);
|
||||||
Router::connect('/dev/:controller/:action/*',
|
Router::connect('/dev/:controller/:action/*',
|
||||||
array('action' => null, 'dev_route' => true)
|
array('dev_route' => true, 'action' => null));
|
||||||
);
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user