This commit is contained in:
Bastian Allgeier
2020-07-07 12:40:13 +02:00
parent 5f025ac2c2
commit f79d2e960c
176 changed files with 10532 additions and 5343 deletions

View File

@@ -60,7 +60,7 @@ class View
*/
public function exists(): bool
{
return file_exists($this->file()) === true;
return is_file($this->file()) === true;
}
/**
@@ -94,13 +94,11 @@ class View
throw new Exception($this->missingViewMessage());
}
$exception = null;
ob_start();
extract($this->data());
$exception = null;
try {
require $this->file();
F::load($this->file(), null, $this->data());
} catch (Throwable $e) {
$exception = $e;
}