| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | public static function render($templatePath, $templateName, $data) |
||
| 7 | { |
||
| 8 | $output = new \WebServCo\Framework\Libraries\HtmlOutput(); |
||
| 9 | foreach ($data as $k => $v) { |
||
| 10 | $output->setData($k, $v); |
||
| 11 | } |
||
| 12 | $output->setPath($templatePath); |
||
| 13 | |||
| 14 | $output->setTemplate($templateName); |
||
| 15 | return $output->render(); |
||
| 16 | } |
||
| 18 |