Commits

Anonymous committed 5d08d6b Merge

Merged in juanda1015/cruge (pull request #6)

Solucion al Generar URL de SubMenus

  • Participants
  • Parent commits b873790, 74c9cfc

Comments (0)

Files changed (1)

File components/CrugeAuthManager.php

         //		mapping: "action_ui_" cambiara por "action_cruge_ui_"
         //
         $itemname = $this->_mapAction($itemname, $this->mapping);
-
+        
         // ejemplo, recibe: action_site_index
         // lo descompone en array('site/index', ..$args..)
         $e = explode('_', $itemname);
             $controllerName = $e[1];
             $actionName = $e[2];
             $a = array();
-            $a[] = $controllerName . "/" . $actionName;
+            $a[] = "/" . $controllerName . "/" . $actionName;
             foreach ($args as $k => $v) {
                 $a[$k] = $v;
             }
         // y que son menu items, pero que no son sub menu items
         $r1 = array();
         foreach ($itemArray as $item) {
-            if ($this->isTaskMenuItem($item)
-                && !$this->isTaskSubMenuItem($item)
-            ) {
+            if ($this->isTaskMenuItem($item) && !$this->isTaskSubMenuItem($item)) {
                 $r1[] = $item;
             }
         }