I find it difficult to configure Zend_Form. I have a subclass of Zend_Form class. The form contains some required information and some additional information. I want additional information to be available through an array. The presented data will look something like this:
$formData['required1']
$formData['required2']
$formData['addiotnalData']['aData1']
$formData['addiotnalData']['aData2']
I searched for this and tried all the suggestions I found (using subForms and setting the Zend_Form::setIsArray($flag)and methods Zend_Form::setElementsBelongTo($array)), but did not understand how to do this.
What am I doing wrong? How to set form element names so that I can access data using array notation?
source
share