Changed the custom route variables, so that the dev route could set the admin flag and not screw up the routing. The AppController now checks the routing params to set the dev/admin flags.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@545 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-13 16:43:07 +00:00
parent 4be4224742
commit 9d716532bb
3 changed files with 35 additions and 19 deletions

View File

@@ -38,14 +38,14 @@ Router::connect('/', array('controller' => 'maps', 'action' => 'view', '1'));
* Route for admin functionality
*/
Router::connect('/admin/:controller/:action/*',
array('action' => null, 'admin' => true)
array('action' => null, 'admin_route' => true)
);
/*
* Route for development functionality
*/
Router::connect('/dev/:controller/:action/*',
array('action' => null, 'dev' => true)
array('action' => null, 'dev_route' => true)
);
?>