getCurrentUser(); $this->view('home/index', [ 'user' => $user, 'isLoggedIn' => $this->isAuthenticated(), 'isAdmin' => $this->isAdmin() ]); } }