Exemplo n.º 1
0
 /**
  * action show form for creating new mails
  *
  * @return void
  */
 public function formAction()
 {
     if (!isset($this->settings['main']['form']) || !$this->settings['main']['form']) {
         return;
     }
     $forms = $this->formRepository->findByUids($this->settings['main']['form']);
     $this->signalSlotDispatcher->dispatch(__CLASS__, __FUNCTION__ . 'BeforeRenderView', array($forms, $this));
     $this->view->assign('forms', $forms);
     $this->view->assign('messageClass', $this->messageClass);
     $this->view->assign('action', $this->settings['main']['confirmation'] ? 'confirmation' : 'create');
     $this->assignForAll();
     // create session
     if (method_exists($forms->getFirst(), 'getUid')) {
         Div::saveFormStartInSession($forms->getFirst()->getUid());
     }
 }