14 lines
246 B
PHP
14 lines
246 B
PHP
<?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');
|
|
}
|
|
}
|
|
?>
|