diff --git a/src/Libs/View.php b/src/Libs/View.php index 509e6bc..edd3a03 100644 --- a/src/Libs/View.php +++ b/src/Libs/View.php @@ -5,7 +5,7 @@ defined('ROOT_DIR') || die('8)'); class View { public static function render($viewName, $params = array()){ - $view = (object) $params; + $view = new Params($params); unset($params); include(ROOT_DIR.'src/Views/'.$viewName.'.php'); }