From e1f2a5d4e60f431e0a94c998afc026f1136fb26b Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 11 Dec 2008 17:20:55 +0000 Subject: 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 --- core/config/routes.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'core/config') 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"; -- cgit v1.2.3