Guest User

Untitled

a guest
Aug 11th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1.      public function taskFormSubmitted(Form $form)
  2.                             {  
  3.                            
  4.                              
  5.                               $hash = $this->calculateHash($form->values->password) ;
  6.                                  try
  7.                                    {
  8.                                 $this->registrations->registrationUser($form->values->username, $hash, $form->values->name);
  9.                                  } catch(Exception $e)
  10.  
  11.                                     {
  12.  
  13.                              //echo 'Chyba: ', $e->getMessage();
  14.                               if ( $e->getCode() == 23000) {
  15.                                           $this->flashMessage('tenhle nick uz je pouzivan.', 'success');      
  16.                               }
  17.                               else {
  18.                              ///////////////
  19.                               }
  20.                                         };
  21.                              
  22.                                }
Advertisement
Add Comment
Please, Sign In to add comment