summaryrefslogtreecommitdiff
path: root/core/config/routes.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-11 17:20:55 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-11 17:20:55 +0000
commite1f2a5d4e60f431e0a94c998afc026f1136fb26b (patch)
tree76d05837701cbe78a6a2b3a845fd05cf971f4693 /core/config/routes.php
parent773d7024eb57765822e345380be7682ce5f14d17 (diff)
1) Begins the creation of the local import module by adding the administation component to the scaffolding Actions tab. The importing functionality will follow shortly.
2) Defines a routining pattern for module administration controllers. URI's of the form admin/module/method/parameters gets remapped into module_admin/method/parameters. This will result in the lookup of the the controller Module_Admin_Controller
Diffstat (limited to 'core/config/routes.php')
-rw-r--r--core/config/routes.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/config/routes.php b/core/config/routes.php
index 9e36f881..9a802a27 100644
--- a/core/config/routes.php
+++ b/core/config/routes.php
@@ -19,10 +19,12 @@
*/
// The abstract REST_Controller is not directly routable.
-$config['^rest\b.*'] = null;
+$config["^rest\b.*"] = null;
// Redirect /form/add and /form/edit to REST_Controller.
-$config['^form/(edit|add)/(\w+)/(.*)$'] = '$2/form_$1/$3';
+$config["^form/(edit|add)/(\w+)/(.*)$"] = "$2/form_$1/$3";
+
+$config["^admin/(\w+)/(.*)$"] = "$1_admin/$2";
// For now our default page is the scaffolding.
-$config['_default'] = 'welcome';
+$config["_default"] = "welcome";