public function createForm($name, $action = '', $method = 'post', $id = '', $class = '', $attributes = '')
    {
        $formOutput = '';
        // Processing the input-tags within the fieldsets first
        foreach ($this->fieldsetData as $fieldData) {
            $formOutput .= $this->fieldset('open', $fieldData['fieldsetId'], $fieldData['fieldsetClass'], $fieldData['fieldsetAttributes']);
            if ($fieldData['legend'] != '') $formOutput .= $this->legend('full', $fieldData['legendId'], $fieldData['legendClass'], $fieldData['legendAttributes'], $fieldData['legend']);
            foreach ($this->formData as $field) {
                if ($fieldData['name'] == $field['fieldset']) $formOutput .= $this->processInput($field);
            }
            $formOutput .= $this->fieldset('close');
        }

        // Processing the input-tags without a fieldset (They always come at the end of the form!!!)
        foreach ($this->formData as $field) {
            if ($field['fieldset'] == '') $formOutput .= $this->processInput($field);
        }
        return $this->form('full', $id, $class, $attributes, $action, $method, $name, $formOutput);
    }
public function createForm($name, $action = '', $method = 'post', $id = '', $class = '', $attributes = '')
    {
        $formOutput = '';
        // Processing the input-tags within the fieldsets first
        foreach ($this->fieldsetData as $fieldData) {
            $formOutput .= $this->fieldset('open', $fieldData['fieldsetId'], $fieldData['fieldsetClass'], $fieldData['fieldsetAttributes']);
            if ($fieldData['legend'] != '') $formOutput .= $this->legend('full', $fieldData['legendId'], $fieldData['legendClass'], $fieldData['legendAttributes'], $fieldData['legend']);
            foreach ($this->formData as $field) {
                if ($fieldData['name'] == $field['fieldset']) $formOutput .= $this->processInput($field);
            }
            $formOutput .= $this->fieldset('close');
        }

        // Processing the input-tags without a fieldset (They always come at the end of the form!!!)
        foreach ($this->formData as $field) {
            if ($field['fieldset'] == '') $formOutput .= $this->processInput($field);
        }
        return $this->form('full', $id, $class, $attributes, $action, $method, $name, $formOutput);
    }
public function createForm ( $ name , $ action = '' , $ method = 'post' , $ id = '' , $ class = '' , $ attributes = '' ) { $ formOutput = '' ; // Processing the input-tags within the fieldsets first foreach ( $ this -> fieldsetData as $ fieldData ) { $ formOutput .= $ this -> fieldset ( 'open' , $ fieldData [ 'fieldsetId' ] , $ fieldData [ 'fieldsetClass' ] , $ fieldData [ 'fieldsetAttributes' ] ) ; if ( $ fieldData [ 'legend' ] != '' ) $ formOutput .= $ this -> legend ( 'full' , $ fieldData [ 'legendId' ] , $ fieldData [ 'legendClass' ] , $ fieldData [ 'legendAttributes' ] , $ fieldData [ 'legend' ] ) ; foreach ( $ this -> formData as $ field ) { if ( $ fieldData [ 'name' ] == $ field [ 'fieldset' ] ) $ formOutput .= $ this -> processInput ( $ field ) ; } $ formOutput .= $ this -> fieldset ( 'close' ) ; } // Processing the input-tags without a fieldset (They always come at the end of the form!!!) foreach ( $ this -> formData as $ field ) { if ( $ field [ 'fieldset' ] == '' ) $ formOutput .= $ this -> processInput ( $ field ) ; } return $ this -> form ( 'full' , $ id , $ class , $ attributes , $ action , $ method , $ name , $ formOutput ) ; }
Use this function to create the form from the configured input and fieldset data

@param string $name Specifies the name of a form
@param string $action Specifies where to send the form-data when a form is submitted
@param string $method Specifies the HTTP method to use when sending form-data (Default = post)
@param string $id Specifies the id of the form-tag
@param string $class Specifies the class of the form-tag
@param string|array $attributes Specifies the other attributes for the form-tag
@return string
Use this function to create the form from the configured input and fieldset data