Updated Home and Post

This commit is contained in:
2017-10-02 09:19:05 +07:00
parent 64fc8a6896
commit 2602ba2911
2 changed files with 17 additions and 1 deletions

View File

@@ -175,4 +175,20 @@ class Home
}
return true;
}
// Branch mithril test
public function mithril() {
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
]);
}
}