Changeset 200 for trunk/trax/vendor/trax/action_controller.php
- Timestamp:
- 05/23/06 03:30:12 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/action_controller.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_controller.php
r199 r200 1049 1049 unset($tmp_key); 1050 1050 unset($tmp_value); 1051 } 1051 } 1052 1052 include($path); 1053 1053 $this->render_performed = true; … … 1102 1102 $file_with_path = $this->views_path."/_".$file.".".$this->views_file_extention; 1103 1103 } 1104 1104 1105 1105 if(file_exists($file_with_path)) { 1106 1106 … … 1121 1121 1122 1122 $locals = array_key_exists("locals", $options) ? $options['locals'] : array(); 1123 if(array_key_exists("collection", $options) ) {1123 if(array_key_exists("collection", $options) && is_array($options['collection'])) { 1124 1124 foreach($options['collection'] as $tmp_value) { 1125 1125 ${$file."_counter"}++; … … 1163 1163 && $this->layout != '') 1164 1164 ? $this->layout : $this->controller; 1165 1165 1166 1166 # Check if a method has been defined to determine the layout at runtime 1167 1167 if(method_exists($this, $layout)) { … … 1181 1181 $path = substr($layout, 0, strripos($layout, "/")); 1182 1182 $layout = $layouts_base_path."/".$path."/".$file.".".$this->views_file_extention; 1183 } elseif( isset($this->layout) && ($this->layout != '') ) {1184 # Is there a layout for the current controller1185 $layout = $layouts_base_path."/".$this->layout.".".$this->views_file_extention;1186 1183 } else { 1187 1184 # Is there a layout for the current controller
