createAvatar() public static method

Create an avatar picture (and checks all necessary things too) TODO decouple TODO total rebuild
public static createAvatar ( )
Beispiel #1
0
 /**
  * Perform the upload of the avatar
  * POST-request
  */
 public function uploadAvatar_action()
 {
     AvatarModel::createAvatar();
     Redirect::to('user/editAvatar');
 }
Beispiel #2
0
 /**
  * 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');
 }
Beispiel #3
0
 public function uploadAvatar_action()
 {
     Auth::checkAuthentication();
     AvatarModel::createAvatar();
     Redirect::to('user/index');
 }