Updated mithril index to do (almost) the same with normal index

This commit is contained in:
2017-09-30 13:42:34 +07:00
parent 49310f645a
commit ae762758fc
6 changed files with 1506 additions and 39 deletions

View File

@@ -178,6 +178,17 @@ class Home
// Branch mithril test
public function mithril() {
View::render('Data/mithril.html');
if (Session::exists('userid')) {
$user['id'] = Session::get('userid');
$user['username'] = Session::get('username');
$user['full_name'] = Session::get('full_name');
$user['privilege'] = Session::get('privilege');
} else {
$user = false;
}
View::render('Data/mithril.html', [
'user' => $user
]);
}
}