| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | public function render($view) |
||
| 56 | { |
||
| 57 | $template_file = PIN_PATH . 'templates' . DS . $this->_template . '.phtml'; |
||
| 58 | |||
| 59 | ob_start(); |
||
| 60 | load_view($view, $this->_properties); |
||
| 61 | $yield = ob_get_clean(); |
||
| 62 | if (file_exists($template_file)) { |
||
| 63 | include $template_file; |
||
| 64 | } else { |
||
| 65 | throw new Exception("Archivo de template no encontrado $template_file", 1); |
||
| 66 | } |
||
| 68 | } |