Changeset 251 for trunk/trax/vendor/trax/trax.php
- Timestamp:
- 08/26/06 10:27:55 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/trax.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/trax.php
r208 r251 48 48 $vendor_path = null, 49 49 $public_path = null, 50 $database_settings = array(),51 50 $url_prefix = null, 52 51 $views_extension = 'phtml', 53 52 $path_seperator = ":", # default is Unix 54 $active_record_connections = array(),55 53 $current_controller_path = null, 56 54 $current_controller_name = null, … … 92 90 ini_set("display_errors", "Off"); 93 91 } 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 102 93 # Set the include_path 103 94 ini_set("include_path", … … 119 110 include_once("dispatcher.php"); 120 111 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 } 121 119 122 120 }
