Show
Ignore:
Timestamp:
01/01/06 21:37:32 (6 years ago)
Author:
john
Message:

added a bunch of stuff for scaffolding

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_controller.php

    r99 r106  
    199199                    if(file_exists(TRAX_LIB_ROOT."/scaffold_controller.php")) { 
    200200                        include_once(TRAX_LIB_ROOT."/scaffold_controller.php"); 
    201                         $this->controller_object = new ScaffoldController($scaffold, $this->controller, $this->action); 
     201                        $GLOBALS['current_controller_object'] = $this->controller_object = new ScaffoldController($scaffold, $this->controller, $this->action); 
    202202                        if($this->action) { 
    203203                            $this->view_file = TRAX_LIB_ROOT . "/templates/scaffolds/".$this->action.".phtml"; 
     
    291291                    ob_end_clean(); 
    292292 
    293                     if(file_exists($this->layout_file)) { 
     293                    if(file_exists($this->layout_file) && $render_layout !== false) { 
    294294                        # render the layout 
    295295                        include($this->layout_file);