| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function render($viewName, $pData, $asString) { |
||
| 20 | $config=Startup::getConfig(); |
||
| 21 | $fileName=$this->viewsFolder . $viewName; |
||
| 22 | if (is_array($pData)) { |
||
| 23 | extract($pData); |
||
| 24 | } |
||
| 25 | $tpl=new TemplateParser($fileName); |
||
| 26 | $content=eval('?>' . $tpl->__toString()); |
||
| 27 | if ($asString) |
||
| 28 | return $content; |
||
| 29 | else |
||
| 30 | echo $content; |
||
| 31 | } |
||
| 32 | public function getBlockNames($templateName) { |
||
| 37 |