src/Framework/Form/AspiForm.php
public function render($depth = 0, $indent = null, $inner = false)
    {
        if (!($this->hasChildren())) {
            $this->prepare();
        }
        foreach ($this->fieldsets as $fieldset) {
            foreach ($fieldset->getAllFields() as $field) {
                if ($field instanceof Element\Input\File) {
                    $this->setAttribute('enctype', 'multipart/form-data');
                    break;
                }
            }
        }
        return parent::render($depth, $indent, $inner);
    }
public function render($depth = 0, $indent = null, $inner = false)
    {
        if (!($this->hasChildren())) {
            $this->prepare();
        }
        foreach ($this->fieldsets as $fieldset) {
            foreach ($fieldset->getAllFields() as $field) {
                if ($field instanceof Element\Input\File) {
                    $this->setAttribute('enctype', 'multipart/form-data');
                    break;
                }
            }
        }
        return parent::render($depth, $indent, $inner);
    }
public function render ( $ depth = 0 , $ indent = null , $ inner = false ) { if ( ! ( $ this -> hasChildren ( ) ) ) { $ this -> prepare ( ) ; } foreach ( $ this -> fieldsets as $ fieldset ) { foreach ( $ fieldset -> getAllFields ( ) as $ field ) { if ( $ field instanceof Element \ Input \ File ) { $ this -> setAttribute ( 'enctype' , 'multipart/form-data' ) ; break ; } } } return parent :: render ( $ depth , $ indent , $ inner ) ; }
Render the form object

@param  int     $depth
@param  string  $indent
@param  boolean $inner
@return mixed
Render the form object