[TYPO3-mvc] fed:form.multiUpload
Bas van der Togt
b.vandertogt at profinit.com
Thu Feb 7 20:57:41 CET 2013
Hello,
I'm trying to get fed:form.multiUpload running in my fluid form but i
get: No value found for key
"Tx_Fluid_ViewHelpers_FormViewHelper->formObject"
My class:
class ApplicationController extends Tx_Fed_Core_AbstractController {
/**
* applicationRepository
*
* @var \Profinit\Blok\Domain\Repository\ApplicationRepository
* @inject
*/
protected $applicationRepository;
/**
* action form
*
* @param \Profinit\Blok\Domain\Model\Application $newApplication
* @dontvalidate $newApplication
* @return void
*/
public function formAction(\Profinit\Blok\Domain\Model\Application
$newApplication=NULL) {
$this->view->assign('newApplication', $newApplication);
}
/**
* action create
*
* @param \Profinit\Blok\Domain\Model\Application $newApplication
* @return void
*/
public function createAction(\Profinit\Blok\Domain\Model\Application
$newApplication) {
$newApplication->setPid(20);
$this->applicationRepository->add($newApplication);
$this->redirect('finish', 'Application');
}
/**
* action finish
*
* @return void
*/
public function finishAction() {
}
}
My template:
{namespace fed=Tx_Fed_ViewHelpers}
<f:layout name="Default" />
<f:section name="main">
<f:form action="create" name="newApplication" object="{newApplication}"
method="post" enctype="multipart/form-data">
<fed:form.multiUpload property="photo" />
<br/>
<f:form.submit value="Verzenden" />
</f:form>
</f:section>
Can somebody point me in the right direction?
Regards,
Bas
More information about the TYPO3-project-typo3v4mvc
mailing list