Show
Ignore:
Timestamp:
07/23/2008 12:05:49 PM (4 months ago)
Author:
Shadowhand
Message:

API WARNING! Renamed Template_Controller::_display to _render to be more consistent.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/controllers/template.php

    r2224 r3201  
    3333                $this->template = new View($this->template); 
    3434 
    35                 if ($this->auto_render === TRUE) 
     35                if ($this->auto_render == TRUE) 
    3636                { 
    37                         // Display the template immediately after the controller method 
    38                         Event::add('system.post_controller', array($this, '_display')); 
     37                        // Render the template immediately after the controller method 
     38                        Event::add('system.post_controller', array($this, '_render')); 
    3939                } 
    4040        } 
    4141 
    4242        /** 
    43          * Display the loaded template. 
     43         * Render the loaded template. 
    4444         */ 
    45         public function _display() 
     45        public function _render() 
    4646        { 
    47                 if ($this->auto_render === TRUE) 
     47                if ($this->auto_render == TRUE) 
    4848                { 
    4949                        // Render the template when the class is destroyed