First commit.
This commit is contained in:
13
src/Libs/View.php
Normal file
13
src/Libs/View.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace Libs;
|
||||
|
||||
defined('ROOT_DIR') || die('8)');
|
||||
|
||||
class View {
|
||||
public static function render($viewName, $params = array()){
|
||||
$view = (object) $params;
|
||||
unset($params);
|
||||
include(ROOT_DIR.'src/Views/'.$viewName.'.php');
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user