예제 #1
0
 /**
  * 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));
 }
예제 #2
0
 /**
  * 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);
 }