Changeset 107 for trunk/trax/vendor/trax/action_controller.php
- Timestamp:
- 01/02/06 22:19:42 (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
r106 r107 34 34 $layouts_path, 35 35 $url_path, 36 $layout_file,37 36 $default_layout_file, 38 37 $helper_file, … … 192 191 193 192 # Which layout should we use? 194 $ this->layout_file = $this->determine_layout();193 $layout_file = $this->determine_layout(); 195 194 196 195 # Check if there is any defined scaffolding to load … … 199 198 if(file_exists(TRAX_LIB_ROOT."/scaffold_controller.php")) { 200 199 include_once(TRAX_LIB_ROOT."/scaffold_controller.php"); 201 $GLOBALS['current_controller_object'] = $this->controller_object = new ScaffoldController($scaffold , $this->controller, $this->action);200 $GLOBALS['current_controller_object'] = $this->controller_object = new ScaffoldController($scaffold); 202 201 if($this->action) { 203 202 $this->view_file = TRAX_LIB_ROOT . "/templates/scaffolds/".$this->action.".phtml"; … … 205 204 $this->view_file = TRAX_LIB_ROOT . "/templates/scaffolds/index.phtml"; 206 205 } 207 if(!file_exists($ this->layout_file)) {206 if(!file_exists($layout_file)) { 208 207 # the generic scaffold layout 209 $ this->layout_file = TRAX_LIB_ROOT . "/templates/scaffolds/layout.phtml";208 $layout_file = TRAX_LIB_ROOT . "/templates/scaffolds/layout.phtml"; 210 209 } 211 210 } … … 291 290 ob_end_clean(); 292 291 293 if(file_exists($ this->layout_file) && $render_layout !== false) {292 if(file_exists($layout_file) && $render_layout !== false) { 294 293 # render the layout 295 include($ this->layout_file);294 include($layout_file); 296 295 } else { 297 296 # Can't find any layout so throw an exception
