Changeset 116 for trunk/trax/vendor/trax/action_view
- Timestamp:
- 01/15/06 03:21:39 (6 years ago)
- Location:
- trunk/trax/vendor/trax/action_view
- Files:
-
- 1 added
- 1 modified
-
helpers.php (modified) (1 diff)
-
helpers/form_options_helper.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_view/helpers.php
r106 r116 80 80 if(array_key_exists(":controller", $options)) { 81 81 if($controller = $options[":controller"]) { 82 if(stristr($this->controller_path, $controller)) { 83 $url[] = $this->controller_path; 84 } else { 85 $url[] = $controller; 86 } 82 $url[] = $controller; 87 83 } 88 84 } else { 89 85 $url[] = $this->controller_path; 90 86 } 91 if(array_key_exists(":action", $options)) { 92 if($action = $options[":action"]) { 93 $url[] = $action; 94 } 87 88 if(count($url)) { 89 if(array_key_exists(":action", $options)) { 90 if($action = $options[":action"]) { 91 $url[] = $action; 92 } 93 } 95 94 } 96 if(array_key_exists(":id", $options)) { 97 if(is_object($options[":id"])) { 98 if($id = $options[":id"]->id) { 99 $url[] = $id; 100 } 101 } else { 102 if($id = $options[":id"]) { 103 $url[] = $id; 95 if(count($url) > 1) { 96 if(array_key_exists(":id", $options)) { 97 if(is_object($options[":id"])) { 98 if($id = $options[":id"]->id) { 99 $url[] = $id; 100 } 101 } else { 102 if($id = $options[":id"]) { 103 $url[] = $id; 104 } 104 105 } 105 106 } 106 107 } 107 108 } 109 110 if(count($url) && substr($url_base,-1) != "/") { 111 $url_base .= "/"; 112 } 113 108 114 return $url_base . implode("/", $url); 109 115 }
