Exemple #1
0
 /**
  * Handling the post from the edit profile form.
  * 
  * @return mixed
  */
 public function handleSaveProfile()
 {
     $postData = Input::all();
     // creating the SentryUser object and calling the edit profile function.
     $SentryUser = new SentryUser();
     $SentryUser->editProfile($postData);
     if (isset($postData['user_id'])) {
         return Redirect::to('user/edit/' . $postData['user_id']);
     } else {
         return Redirect::to('edit-profile');
     }
 }