Changeset 210 for trunk/trax/vendor

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

fixed some syntax errors

Location:
trunk/trax/vendor/trax
Files:
3 modified

Legend:

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

    r205 r210  
    11001100                    $spacer_file = substr(strrchr($spacer_path, "/"), 1); 
    11011101                    $spacer_path = substr($spacer_path, 0, strripos($spacer_path, "/")); 
    1102                     $spacer_file_with_file = TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['views']."/".$spacer_path."/_".$spacer_file.".".Trax::$views_extension; 
     1102                    $spacer_file_with_file = Trax::$views_path."/".$spacer_path."/_".$spacer_file.".".Trax::$views_extension; 
    11031103                } else { 
    11041104                    $spacer_file = $spacer_path; 
  • trunk/trax/vendor/trax/active_record.php

    r203 r210  
    20172017     * 
    20182018     *  The name of the database normally comes from 
    2019      *  $GLOBALS['TRAX_DB_SETTINGS'] which is set in {@link 
     2019     *  Trax::$database_settings which is set in {@link 
    20202020     *  environment.php} by reading file config/database.ini. The 
    20212021     *  database name may be overridden by assigning a different name 
     
    20232023     *   
    20242024     *  If there is a connection now open, as indicated by the saved 
    2025      *  value of a DB object in $GLOBALS['ACTIVE_RECORD_DB'], and 
     2025     *  value of a DB object in Trax::$active_record_connections[$connection_name], and 
    20262026     *  {@link force_reconnect} is not true, then set the database 
    20272027     *  fetch mode and return. 
    20282028     * 
    20292029     *  If there is no connection, open one and save a reference to 
    2030      *  it in $GLOBALS['ACTIVE_RECORD_DB']. 
     2030     *  it in Trax::$active_record_connections[$connection_name]. 
    20312031     * 
    20322032     *  @uses $db 
  • 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");