Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }