Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function loadView($viewName, $pData = NULL, $asString = false) { |
||
40 | $filename = \ROOT . \DS . 'views' . \DS . $viewName; |
||
41 | if ($asString) { |
||
42 | return $this->_includeFileAsString ( $filename, $pData ); |
||
43 | } |
||
44 | if (isset ( $pData )) { |
||
45 | \extract ( $pData ); |
||
46 | } |
||
47 | include ($filename); |
||
48 | } |
||
50 |