@@ 110-117 (lines=8) @@ | ||
107 | * @param string $layoutFile |
|
108 | * @throws InvalidViewConfigurationException |
|
109 | */ |
|
110 | public function setLayoutFile($layoutFile) |
|
111 | { |
|
112 | $this->layoutFile = realpath($this->getViewDirectory() . DIRECTORY_SEPARATOR . $layoutFile); |
|
113 | if (!is_file($this->layoutFile)) { |
|
114 | throw new InvalidViewConfigurationException('Could not resolve base layout file: ' . $layoutFile); |
|
115 | } |
|
116 | $this->layoutFile = basename($this->layoutFile); |
|
117 | } |
|
118 | ||
119 | /** |
|
120 | * @return string |
|
@@ 151-158 (lines=8) @@ | ||
148 | * @param string $viewFile |
|
149 | * @throws InvalidViewConfigurationException |
|
150 | */ |
|
151 | public function setViewFile($viewFile) |
|
152 | { |
|
153 | $this->viewFile = realpath($this->getViewDirectory() . DIRECTORY_SEPARATOR . $viewFile); |
|
154 | if (!is_file($this->viewFile)) { |
|
155 | throw new InvalidViewConfigurationException('Could not resolve base file file: ' . $viewFile); |
|
156 | } |
|
157 | $this->viewFile = basename($this->viewFile); |
|
158 | } |
|
159 | ||
160 | /** |
|
161 | * @return bool |