Php 使用相同名称的Zend表单输入名称
使用Zend 1.9,我试图使用Zend form模块生成一个表单。 我的表格应该是这样的:Php 使用相同名称的Zend表单输入名称,php,zend-framework,zend-form,Php,Zend Framework,Zend Form,使用Zend 1.9,我试图使用Zend form模块生成一个表单。 我的表格应该是这样的: <form method="post" action="myaction"> <input type="text" name="editors[]" /> <input type="text" name="editors[]" /> <input type="text" name="editors[]" /> <in
<form method="post" action="myaction">
<input type="text" name="editors[]" />
<input type="text" name="editors[]" />
<input type="text" name="editors[]" />
<input type="text" name="editors[]" />
<button type="submit" >Go</button>
</form>
Zend_Debug::dump($this->getAllParams());
//I expect this output:
array (size=4)
'controller' => string 'myCotnroller' (length=8)
'module' => string 'MyModule' (length=14)
'action' => string 'test' (length=4)
'editors' =>
array (size=4)
0 => string '' (length=3)
1 => string '' (length=0)
2 => string '' (length=0)
3 => string '' (length=0)
我上周试了很多次都没有结果。我已经搜索过了,没有任何搜索结果。
你能帮我吗 我希望其中一些能对您的任务有所帮助。
您实际得到的结果是什么?我正在使用belongsTo属性和/或isArray属性,但没有任何好结果。为什么我的问题被否决了?我在StackOverflow数据库中搜索过,但是没有人会问这个问题。您实际得到的输出是什么?你已经给了我们期望的东西,但是你没有向我们展示你当前得到的东西。实际上,我没有得到任何输出,因为当我从表单构建元素时,没有属性来执行我的任务。所以我被封锁了。这是一个类似的问题,另一个没有明确回答的类似问题: