[TYPO3-mvc] redirect to action
Jacco van der Post
jacco at id-internetservices.com
Wed Nov 19 19:07:23 CET 2014
Hi!
I have
/**
* action create
*
* @param \xxx\yyy\Domain\Model\Media $newMedia
* @return void
*/
public function createAction(\xxx\yyy\Domain\Model\Media $newMedia) {
$this->mediaRepository->add($newMedia);
$this->objectManager->get('TYPO3\\CMS\Extbase\\Persistence\\Generic\\PersistenceManager')->persistAll();
$this->redirect('thanks', null, null,array('media' => $newMedia));
}
/**
* thanksAction
*
* @param \xxx\yyy\Domain\Model\Media $media
* @return void
*/
public function thanksAction(\xxx\yyy\Domain\Model\Media $media) {
}
How do I send $newMedia or values of it to thanksAction?
The argument type for parameter $arguments of method
xxx\yyy\Controller\MediaController->thanksAction() could not be detected.
thanks
--
Kind Regards
Jacco van der Post
More information about the TYPO3-project-typo3v4mvc
mailing list