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