在我的TYPO3 / Extbase 6.0扩展程序中,我创建了SermonController
,其中包含两项操作:welcomeAction
和submitAction
。在我的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:"sermon";i:1;s:14:"audiorecording";a:5:{s:4:"name";i:1;s:4:"type";i:1;s:8:"tmp_name";i:1;s:5:"error";i:1;s:4:"size";i:1;}}fb8f3c052c5d4ded1adcf8f29303e5c68d2fa646" />
</div>
[...]
<button type="submit" name="" value="">Hochladen</button>
</form>
根据welcomeAction
和页面上的FlexForm,submitAction
和ext_localconf.php
都是允许的。
我在这里做错了什么?我确定我忽略了一些非常简单的事情?
答案 0 :(得分:1)
从submitAction
中删除* Action<f:form enctype="multipart/form-data" Controller="Sermon" action="submit" method="post">