为什么我的TYPO3 / Extbase 6.0表单总是重定向到welcomeAction?

时间:2014-04-19 16:25:54

标签: typo3 fluid extbase typo3-6.1.x

在我的TYPO3 / Extbase 6.0扩展程序中,我创建了SermonController,其中包含两项操作:welcomeActionsubmitAction。在我的welcomeAction中,我正在使用以下代码创建表单:

<f:form enctype="multipart/form-data" Controller="Sermon" action="submitAction" method="post">
...
</f:form>

然而,当我总结表格时,我总是回到welcomeAction。查看HTML源代码,我无法看到action参数的传递位置。 TYPO3创造了这样的东西:

<form enctype="multipart/form-data" method="post" action="sermon.html">
<div>
<input type="hidden" name="tx_vmfdssermons_sermons[__referrer][@extension]" value="ExtensionName" />
<input type="hidden" name="tx_vmfdssermons_sermons[__referrer][@vendor]" value="TYPO3" />
<input type="hidden" name="tx_vmfdssermons_sermons[__referrer][@controller]" value="Sermon" />
<input type="hidden" name="tx_vmfdssermons_sermons[__referrer][@action]" value="welcome" />
<input type="hidden" name="tx_vmfdssermons_sermons[__referrer][arguments]" value="YTozOntzOjEwOiJjb250cm9sbGVyIjtzOjY6IlNlcm1vbiI7czo2OiJzZXJtb24iO3M6MzoiMjA4IjtzOjE0OiJhdWRpb3JlY29yZGluZyI7YTo1OntzOjQ6Im5hbWUiO3M6MDoiIjtzOjQ6InR5cGUiO3M6MDoiIjtzOjg6InRtcF9uYW1lIjtzOjA6IiI7czo1OiJlcnJvciI7aTo0O3M6NDoic2l6ZSI7aTowO319620254a4673760d044ba176b9925b7d33f8400bc" />
<input type="hidden" name="tx_vmfdssermons_sermons[__trustedProperties]" value="a:2:{s:6:&quot;sermon&quot;;i:1;s:14:&quot;audiorecording&quot;;a:5:{s:4:&quot;name&quot;;i:1;s:4:&quot;type&quot;;i:1;s:8:&quot;tmp_name&quot;;i:1;s:5:&quot;error&quot;;i:1;s:4:&quot;size&quot;;i:1;}}fb8f3c052c5d4ded1adcf8f29303e5c68d2fa646" />
</div>
[...]
<button type="submit" name="" value="">Hochladen</button>
</form>

根据welcomeAction和页面上的FlexForm,submitActionext_localconf.php都是允许的。

我在这里做错了什么?我确定我忽略了一些非常简单的事情?

1 个答案:

答案 0 :(得分:1)

从submitAction

中删除* Action
<f:form enctype="multipart/form-data" Controller="Sermon" action="submit" method="post">