diff --git a/classes/Core/View.php b/classes/Core/View.php index c8ecbab..e843e3b 100644 --- a/classes/Core/View.php +++ b/classes/Core/View.php @@ -29,7 +29,7 @@ public function __construct($name, $params = array(), $ns = null) { $this->name = $name; - $this->path = (($ns) ?: namespace\PATH)."/views/$name.php"; + $this->path = (($ns === null) ? namespace\PATH : $ns)."/views/$name.php"; $this->params = $params; }