createAvatar() public static méthode

Create an avatar picture (and checks all necessary things too) TODO decouple TODO total rebuild
public static createAvatar ( )
 /**
  * Perform the upload of the avatar
  * POST-request
  */
 public function uploadAvatar_action()
 {
     AvatarModel::createAvatar();
     Redirect::to('user/editAvatar');
 }
 /**
  * Perform the upload of the avatar
  * Auth::checkAuthentication() makes sure that only logged in users can use this action and see this page
  * POST-request
  */
 public function uploadAvatar_action()
 {
     Auth::checkAuthentication();
     AvatarModel::createAvatar();
     Redirect::to('login/editAvatar');
 }
Exemple #3
0
 public function uploadAvatar_action()
 {
     Auth::checkAuthentication();
     AvatarModel::createAvatar();
     Redirect::to('user/index');
 }