简体   繁体   English

Typo3表单提交到另一个视图

[英]Typo3 form submit to another view

I've made an extension in Typo3 6.2 with extbase and fluid. 我在Typo3 6.2中使用extbase和fluid进行了扩展。

I've 2 actions in my controller - action 1 (single) : simply show an object and a form (some filter for object list) - action 2 (list) : show the same form as in action 1 and treat form result and show a list of object 我的控制器中有2个动作-动作1(单个):仅显示一个对象和一个表单 (一些对象列表过滤器)-动作2(列表):显示与动作1相同的表单,并处理表单结果并显示对象列表

in my two views, my form looks like : 在我的两个视图中,我的表单如下所示:

<f:form action="list" controller="MyController" pluginName="MyPluginName" name="myName">
...
</f:form>

the MyPluginName refere the the 2nd view (list) MyPluginName引用第二个视图(列表)

When i submit the form from the 2nd view (list), the action recieve correctly the form params But, when i submit it from the 1st view (single), i'm correctly redirected to the 2nd view BUT with a Typo3 Error : 当我从第二个视图(列表)提交表单时,该操作正确接收了表单参数。但是,当我从第一个视图(单个)提交表单时,我正确地重定向到了第二个视图,但出现Typo3错误:

 #1320830276: A hashed string must contain at least 40 characters, the given string was only 9 characters long. (More information)

So, how can i achieve this? 那么,我该如何实现呢?

Thanks 谢谢

对于表单,您必须在ext_localconf中将操作设置为不可缓存

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM