Show
Ignore:
Timestamp:
05/29/06 01:36:55 (6 years ago)
Author:
john
Message:

fixed some syntax errors

Files:
1 modified

Legend:

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

    r201 r210  
    548548        } 
    549549 
    550         $GLOBALS['current_controller_object'] =& $this; 
     550        Trax::$current_controller_object =& $this; 
    551551        $model_class_name = Inflector::classify($model_name); 
    552552        $singular_model_name = Inflector::singularize($model_name); 
     
    575575            $controller_name = Inflector::underscore($controller_name);     
    576576        } 
    577         $GLOBALS['current_controller_name'] = $controller_name; 
    578         $controller_file = 
    579             "$this->controller_path/" . $controller_name."_controller.php"; 
    580         $GLOBALS['current_controller_path'] = $controller_file; 
     577        Trax::$current_controller_name = $controller_name; 
     578        $controller_file = "$this->controller_path/" . $controller_name."_controller.php"; 
     579        Trax::$current_controller_path = $controller_file; 
    581580        $non_scaffolded_actions = array(); 
    582581        $illegal_views = array("index","add","edit","show");