Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
70 | public function render($view) |
||
71 | { |
||
72 | $template_file = PIN_PATH . 'templates' . DS . $this->_template . '.phtml'; |
||
73 | |||
74 | ob_start(); |
||
75 | load_view($view, $this->_properties); |
||
76 | $yield = ob_get_clean(); |
||
77 | if (file_exists($template_file)) { |
||
78 | $title = $this->_title; |
||
79 | include $template_file; |
||
80 | } else { |
||
81 | throw new Exception("Archivo de template no encontrado $template_file", 1); |
||
82 | } |
||
84 | } |