getHomeInformation(); $this->assign('information', $getHomeInformation); return $this->fetch(); }//end index() public function isLogin() { $userId = session('user_id'); if ($userId) { return ["success"=>true]; } else { return ["success"=>false]; } }//end index() }