change from object to param class.
This commit is contained in:
parent
856557405e
commit
255ef0a75d
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user