Show
Ignore:
Timestamp:
08/26/06 10:27:55 (6 years ago)
Author:
john
Message:

move database_settings[] and active_connections[] to AR out of Trax class to make AR more generic for standalone version

Files:
1 modified

Legend:

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

    r208 r251  
    4848        $vendor_path = null, 
    4949        $public_path = null, 
    50         $database_settings = array(),  
    5150        $url_prefix = null, 
    5251        $views_extension = 'phtml', 
    5352        $path_seperator = ":", # default is Unix 
    54         $active_record_connections = array(), 
    5553        $current_controller_path = null, 
    5654        $current_controller_name = null, 
     
    9290            ini_set("display_errors", "Off"); 
    9391        } 
    94          
    95         # Make sure database settings are cleared out 
    96         self::$database_settings = array(); 
    97         if(file_exists(self::$config_path."/database.ini")) { 
    98             # Load databse settings  
    99             self::$database_settings = parse_ini_file(self::$config_path."/database.ini",true); 
    100         } 
    101          
     92                 
    10293        # Set the include_path 
    10394        ini_set("include_path", 
     
    119110        include_once("dispatcher.php"); 
    120111        include_once("router.php"); 
     112 
     113        # Make sure database settings are cleared out 
     114        ActiveRecord::$database_settings = array(); 
     115        if(file_exists(self::$config_path."/database.ini")) { 
     116            # Load databse settings  
     117            ActiveRecord::$database_settings = parse_ini_file(self::$config_path."/database.ini", true); 
     118        } 
    121119                    
    122120    }