Esempio n. 1
0
 /**
  * action delete
  *
  * @param \Vendor\Key\Domain\Model\Plz $plz
  * @return void
  */
 public function deleteAction(\Vendor\Key\Domain\Model\Plz $plz)
 {
     $this->addFlashMessage('The object was deleted. Please be aware that this action is publicly accessible unless you implement an access check. See <a href="http://wiki.typo3.org/T3Doc/Extension_Builder/Using_the_Extension_Builder#1._Model_the_domain" target="_blank">Wiki</a>', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
     $this->plzRepository->remove($plz);
     $this->redirect('list');
 }
Esempio n. 2
0
 /**
  * action list
  *
  * @return void
  */
 public function showAction()
 {
     echo 'showAction is called';
     $plzs = $this->plzRepository->findAll();
     $this->view->assign('plzs', $plzs);
 }