zend-form-sub-form

Splitting up a Zend_Form

一笑奈何 提交于 2020-01-07 02:03:30
问题 I have created a Zend_From with a couple of fields. What I'd like to do, is put them inside paragraphs, so that they would flow naturally. For an example Danny had [select with 1-10] apples and James had [select with 3-20] pears. I have been trying to do this with $elem= $this->registerForm->getElement('danny'); but then on the output, the value of this element is not included in the form anymore. I also thought that this could be done with Zend_Form_SubForm() , but couldn't find any examples

Zend_Form using subforms getValues() problem

独自空忆成欢 提交于 2019-12-11 05:36:57
问题 I am building a form in Zend Framework 1.9 using subforms as well as Zend_JQuery being enabled on those forms. The form itself is fine and all the error checking etc is working as normal. But the issue I am having is that when I'm trying to retrieve the values in my controller, I'm receiving just the form entry for the last subform e.g. My master form class (abbreviated for speed): Master_Form extends Zend_Form { public function init() { ZendX_JQuery::enableForm($this); $this->setAction(

How do configure Zend_Form to use array notation?

 ̄綄美尐妖づ 提交于 2019-11-29 22:10:07
问题 I'm having difficulty configuring Zend_Form. I have a Zend_Form sub-class. The form has some required information and some additional information. I want the additional information to be accessible via an array. The submitted data will look something like this: $formData['required1'] $formData['required2'] $formData['addiotnalData']['aData1'] $formData['addiotnalData']['aData2'] I've Googled this and tried all the suggestions I've found (using subForms and setting the Zend_Form::setIsArray(

Using ViewScript Decorator on Nested Subforms (Zend Form)

≡放荡痞女 提交于 2019-11-27 08:58:52
I want to use a view script to render my zend form as it seems to be the best way to control the layout/design of the form while still using the Zend_Elements classes. From the view script, I render the element with $this->element->getElement('elementName') . I'm having problems with the names of the elements. This is actually a sub-form inside a sub-form inside a form. When I used the FormElements decorators , the fully qualified name of the elements was form[subForm][subForm][element] , which was good. Wehn I moved to the viewScript decorators, it changed to subForm[subForm][element]. I

Using ViewScript Decorator on Nested Subforms (Zend Form)

二次信任 提交于 2019-11-26 14:25:09
问题 I want to use a view script to render my zend form as it seems to be the best way to control the layout/design of the form while still using the Zend_Elements classes. From the view script, I render the element with $this->element->getElement('elementName') . I'm having problems with the names of the elements. This is actually a sub-form inside a sub-form inside a form. When I used the FormElements decorators , the fully qualified name of the elements was form[subForm][subForm][element] ,