Commits

Anonymous committed 5d08d6b Merge

Merged in juanda1015/cruge (pull request #6)

Solucion al Generar URL de SubMenus

Comments (0)

Files changed (1)

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;
             }
         }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.