2014-04-19 17 views
0

在我的TYPO3/Extbase 6.0擴展中,我用兩個動作創建了一個SermonControllerwelcomeActionsubmitAction。在我welcomeAction,我使用下面的代碼創建一個表單:爲什麼我的TYPO3/Extbase 6.0表格總是重定向到welcomeAction?

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

然而,當我透過形式,我總是回到了welcomeAction。看看HTML源代碼,我看不到動作參數傳遞的位置。 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> 

兩個welcomeActionsubmitAction被允許按照ext_localconf.php和柔性成型的頁面上。

我在這裏做錯了什麼?我確定我忽略了一些非常簡單的東西?

回答

1

從submitAction

<f:form enctype="multipart/form-data" Controller="Sermon" action="submit" method="post"> 
刪除*行動