@@ 150-157 (lines=8) @@ | ||
147 | * @param string $layoutFile |
|
148 | * @throws InvalidViewConfigurationException |
|
149 | */ |
|
150 | public function setLayoutFile($layoutFile) |
|
151 | { |
|
152 | $this->layoutFile = realpath($this->getViewDirectory() . DIRECTORY_SEPARATOR . $layoutFile); |
|
153 | if (!is_file($this->layoutFile)) { |
|
154 | throw new InvalidViewConfigurationException('Could not resolve base layout file: ' . $layoutFile); |
|
155 | } |
|
156 | $this->layoutFile = basename($this->layoutFile); |
|
157 | } |
|
158 | ||
159 | /** |
|
160 | * @return string |
|
@@ 191-198 (lines=8) @@ | ||
188 | * @param string $viewFile |
|
189 | * @throws InvalidViewConfigurationException |
|
190 | */ |
|
191 | public function setViewFile($viewFile) |
|
192 | { |
|
193 | $this->viewFile = realpath($this->getViewDirectory() . DIRECTORY_SEPARATOR . $viewFile); |
|
194 | if (!is_file($this->viewFile)) { |
|
195 | throw new InvalidViewConfigurationException('Could not resolve base file file: ' . $viewFile); |
|
196 | } |
|
197 | $this->viewFile = basename($this->viewFile); |
|
198 | } |
|
199 | ||
200 | /** |
|
201 | * @return mixed |