3.4.0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user