/**
  * @return void
  */
 public function profileAction()
 {
     session_start();
     // \TYPO3\Flow\var_dump($this->answerRepository->findByUser('wefwe'));
     // 	die();
     $this->view->assign('usrname', $_SESSION['usrname']);
     $this->view->assign('forms', $this->formRepository->findAll());
     // $this->view->assign('form', $form);
 }
 /**
  * @return void
  */
 public function homeAction()
 {
     session_start();
     $this->view->assign('usrname', $_SESSION['usrname']);
     $this->view->assign('forms', $this->formRepository->findAll());
 }
Exemplo n.º 3
0
 /**
  * @param \SKL\Test\Domain\Model\Form $form
  * @return void
  */
 public function deleteAction(Form $form)
 {
     $this->formRepository->remove($form);
     $this->addFlashMessage('Deleted a form.');
     $this->redirect('index');
 }