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:
@@ -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)
|
||||
);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user