| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 72 | public function render($view) |
||
| 73 | { |
||
| 74 | |||
| 75 | |||
| 76 | $template_file = APP_PATH . 'views' . DS . '_shared' . DS . 'templates' . DS . $this->_template . '.phtml'; |
||
| 77 | |||
| 78 | ob_start(); |
||
| 79 | \Pin\Libs\Load::view($view, $this->_properties); |
||
| 80 | $yield = ob_get_clean(); |
||
| 81 | if (file_exists($template_file)) { |
||
| 82 | $title = $this->_title; |
||
| 83 | include $template_file; |
||
| 84 | } else { |
||
| 85 | throw new \Exception("Archivo de template no encontrado $template_file", 1); |
||
| 86 | } |
||
| 89 |