| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 99 | public function getContents() |
||
| 100 | { |
||
| 101 | $_view = $this->path . DIRECTORY_SEPARATOR . $this->name . '.phtml'; |
||
| 102 | |||
| 103 | if (!file_exists($_view)) |
||
| 104 | throw new Exception\ViewNotFoundException("The view '" .$this->name. "' does not exists"); |
||
| 105 | |||
| 106 | $contents = file_get_contents($_view); |
||
| 107 | |||
| 108 | if ($contents === false) |
||
| 109 | throw new Exception\ViewGetContentsErrorException("The view '" .$this->name. "' does not exists"); |
||
| 110 | |||
| 111 | return $contents; |
||
|
|
|||
| 112 | } |
||
| 126 | } |