#20510Extbase/Fluid does not support to fill an array from formular's text-fields
Description
If you have a class that has an array as a property you cannot create the array’s elements from multiple formular’s textfields.
Sample:
—- Model —-
class Tx_MyExt_Domain_Model_Myclass extends Tx_Extbase_DomainObject_AbstractEntity {/*
- @var array
*/
protected $myarray;
[…]
}
—- Fluid Template —-
<f:form method="post" controller="Mycontroller" action="create" name="newMyclass" object="{newMyclass}"><br> <f:for each="{newMyclass.myarray}" as="arrayelement"><br><!-- Test (1) --><br> <f:form property="arrayelement"></f:form><br><!-- Test (2) --><br> <f:form name="newMyclass[arrayelement[]]" value="{arrayelement}"></f:form><br><!-- Test (3) --><br> <f:form name="newMyclass[arrayelement][]" value="{arrayelement}"></f:form><br> </f:for><br></f:form>Neither Test (1) nor Test (2) nor Test (3) is not working. The error shown is:
Fatal error: Class ‘array’ not found in C:\project_a\t3lib\class.t3lib_div.php on line 4794
(issue imported from #M11196)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.