Beispiel #1
0
 /**
  * Create a user for the given contact. 
  */
 public function createuserAction()
 {
     $contact = $this->byId();
     try {
         $this->clientService->createUserForContact($contact);
     } catch (InvalidModelException $ime) {
         $this->flash($ime->getMessages());
         za()->log(print_r($ime->getMessages(), true), Zend_Log::ERR);
     }
     $this->redirect('contact', 'edit', array('id' => $contact->id));
 }