/** * Handling the page for editing a user profile. * * @param null $id */ public function handleEditUser($id) { $user = UserHelper::getUserObj($id); $thisUser = Session::get('userObj'); $this->layout->content = View::make('sentryuser::edit-profile')->with('currUser', $thisUser)->with('userdata', $user)->with('uid', $id); }
/** * Creating the session for the user with the user details * * @param unknown $userId */ public function setUserSession($userId) { $userObj = UserHelper::getUserObj($userId); Session::put('userObj', $userObj); }