/** * Deletes an existing Video * * @param Tx_Youtubeapi_Domain_Model_Video $video The Video to be deleted */ public function deleteAction(Tx_Youtubeapi_Domain_Model_Video $video) { $this->videoRepository->remove($video); $this->flashMessageContainer->add('Your Video was removed.'); $this->redirect('index'); }
/** * index action * * @return void */ public function indexAction() { $videos = $this->videoRepository->findAll(); $this->view->assign('videos', $videos); $this->view->assign('intro', "hello world."); }