change from object to param class.

This commit is contained in:
kj 2020-03-16 16:35:19 -04:00
parent 856557405e
commit 255ef0a75d

View File

@ -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');
}