Show
Ignore:
Timestamp:
05/25/06 02:58:10 (6 years ago)
Author:
john
Message:

Major changes to environment added boot.php and Trax class to hold framwork config

Files:
1 modified

Legend:

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

    r200 r201  
    5959            'args' => '-i -t' 
    6060        ), 
    61         $views_file_extention = TRAX_VIEWS_EXTENTION, 
    6261        $delivery_method = "mail", # mail | sendmail | smtp | test 
    6362        $perform_deliveries = true, # true will attempt to deliver mail | false will not deliver mail 
     
    217216     */ 
    218217    private function initialize_defaults($method_name) {        
    219         $this->template_root = TRAX_ROOT . $GLOBALS['TRAX_INCLUDES']['views']; 
     218        $this->template_root = Trax::$views_path; 
    220219        $this->template_path = "{$this->template_root}/".Inflector::underscore(get_class($this)); 
    221220        $this->template = $this->template ? $this->template : $method_name;         
     
    278277    function render_message($method_name, $body = array()) { 
    279278        if(strstr($method_name, "/")) { 
    280             $template = "{$this->template_root}/{$method_name}.{$this->views_file_extention}"; 
    281         } else { 
    282             $template = "{$this->template_path}/{$method_name}.{$this->views_file_extention}"; 
     279            $template = "{$this->template_root}/{$method_name}.".Trax::$views_extension; 
     280        } else { 
     281            $template = "{$this->template_path}/{$method_name}.".Trax::$views_extension; 
    283282        } 
    284283