Show
Ignore:
Timestamp:
01/12/06 05:24:23 (6 years ago)
Author:
john
Message:

added scaffolding generator

Files:
1 modified

Legend:

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

    r112 r113  
    5151        $views_path, 
    5252        $controller_class, $controller_object, 
    53         $views_file_extention = "phtml"; 
     53        $views_file_extention = TRAX_VIEWS_EXTENTION; 
    5454 
    5555    function __construct() { 
     
    447447        header('status: {$error_code} {$error_heading}');  
    448448        # 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); 
    451451        } elseif(DEBUG && file_exists(TRAX_LIB_ROOT."/templates/error.phtml")) { 
    452452            # use default layout for errors