Changeset 3201 for trunk/system/controllers
- Timestamp:
- 07/23/2008 12:05:49 PM (4 months ago)
- Files:
-
- 1 modified
-
trunk/system/controllers/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/controllers/template.php
r2224 r3201 33 33 $this->template = new View($this->template); 34 34 35 if ($this->auto_render == =TRUE)35 if ($this->auto_render == TRUE) 36 36 { 37 // Displaythe template immediately after the controller method38 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')); 39 39 } 40 40 } 41 41 42 42 /** 43 * Displaythe loaded template.43 * Render the loaded template. 44 44 */ 45 public function _ display()45 public function _render() 46 46 { 47 if ($this->auto_render == =TRUE)47 if ($this->auto_render == TRUE) 48 48 { 49 49 // Render the template when the class is destroyed
