/** * Updates an existing file * * @param Tx_KiddogNews_Domain_Model_Link $editLink The existing, unmodified file * @param Tx_KiddogNews_Domain_Model_Post $post * @return void */ public function updateAction(Tx_KiddogNews_Domain_Model_Link $editLink, Tx_KiddogNews_Domain_Model_Post $post) { $this->linkRepository->update($editLink); $this->flashMessages->add('Link update success'); $this->redirect('edit', 'Post', NULL, array('post' => $post)); }
/** * update action * @param Tx_KiddogNews_Domain_Model_Post $post * @return string The rendered update action */ public function updateAction(Tx_KiddogNews_Domain_Model_Post $editPost) { $this->postRepository->update($editPost); $this->flashMessages->add('Post update success'); $this->redirect('showLatest', NULL, NULL, NULL); }