Changeset 210 for trunk/trax/vendor
- Timestamp:
- 05/29/06 01:36:55 (6 years ago)
- Location:
- trunk/trax/vendor/trax
- Files:
-
- 3 modified
-
action_controller.php (modified) (1 diff)
-
active_record.php (modified) (2 diffs)
-
trax_generator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_controller.php
r205 r210 1100 1100 $spacer_file = substr(strrchr($spacer_path, "/"), 1); 1101 1101 $spacer_path = substr($spacer_path, 0, strripos($spacer_path, "/")); 1102 $spacer_file_with_file = T RAX_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; 1103 1103 } else { 1104 1104 $spacer_file = $spacer_path; -
trunk/trax/vendor/trax/active_record.php
r203 r210 2017 2017 * 2018 2018 * The name of the database normally comes from 2019 * $GLOBALS['TRAX_DB_SETTINGS']which is set in {@link2019 * Trax::$database_settings which is set in {@link 2020 2020 * environment.php} by reading file config/database.ini. The 2021 2021 * database name may be overridden by assigning a different name … … 2023 2023 * 2024 2024 * If there is a connection now open, as indicated by the saved 2025 * value of a DB object in $GLOBALS['ACTIVE_RECORD_DB'], and2025 * value of a DB object in Trax::$active_record_connections[$connection_name], and 2026 2026 * {@link force_reconnect} is not true, then set the database 2027 2027 * fetch mode and return. 2028 2028 * 2029 2029 * 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]. 2031 2031 * 2032 2032 * @uses $db -
trunk/trax/vendor/trax/trax_generator.php
r201 r210 548 548 } 549 549 550 $GLOBALS['current_controller_object']=& $this;550 Trax::$current_controller_object =& $this; 551 551 $model_class_name = Inflector::classify($model_name); 552 552 $singular_model_name = Inflector::singularize($model_name); … … 575 575 $controller_name = Inflector::underscore($controller_name); 576 576 } 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; 581 580 $non_scaffolded_actions = array(); 582 581 $illegal_views = array("index","add","edit","show");
