Changeset 113 for trunk/trax/vendor/trax/action_controller.php
- Timestamp:
- 01/12/06 05:24:23 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/action_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_controller.php
r112 r113 51 51 $views_path, 52 52 $controller_class, $controller_object, 53 $views_file_extention = "phtml";53 $views_file_extention = TRAX_VIEWS_EXTENTION; 54 54 55 55 function __construct() { … … 447 447 header('status: {$error_code} {$error_heading}'); 448 448 # check for user's layout for errors 449 if(DEBUG && file_exists(TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['layouts']."/ error.phtml")) {450 include(TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['layouts']."/ error.phtml");449 if(DEBUG && file_exists(TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['layouts']."/trax_error.".TRAX_VIEWS_EXTENTION)) { 450 include(TRAX_ROOT.$GLOBALS['TRAX_INCLUDES']['layouts']."/trax_error.".TRAX_VIEWS_EXTENTION); 451 451 } elseif(DEBUG && file_exists(TRAX_LIB_ROOT."/templates/error.phtml")) { 452 452 # use default layout for errors
