/** * action list * * @param Tx_Nxshowroom_Domain_Model_Tags $tag * @return void */ public function listAction(Tx_Nxshowroom_Domain_Model_Tags $tag = NULL) { if ($tag) { $types = $this->typeRepository->findByTag($tag->getUid(), 5); $this->view->assign('tag', $tag); } else { $types = $this->typeRepository->findAll(); } $this->view->assign('UPLOAD_FOLDER', Tx_Nxshowroom_Utility_Base::$UPLOAD_FOLDER); $this->view->assign('types', $types); }
/** * action update * * @param $type * @return void */ public function updateAction(Tx_Nxshowroom_Domain_Model_Type $type) { $this->typeRepository->update($type); $this->flashMessageContainer->add('<h4 class="alert-heading">Okay!</h4> Your Type was updated.'); $this->redirect('list', 'Resource'); }