src/Framework/Form/AspiForm.php
public function addFieldsetsFromConfig(array $fieldsets, $container = null)
    {
        foreach ($fieldsets as $legend => $config) {
            if (!is_numeric($legend)) {
                $this->createFieldset($legend, $container);
            } else {
                $this->createFieldset(null, $container);
            }
            $this->addFieldsFromConfig($config);
        }
        return $this;
    }
public function addFieldsetsFromConfig(array $fieldsets, $container = null)
    {
        foreach ($fieldsets as $legend => $config) {
            if (!is_numeric($legend)) {
                $this->createFieldset($legend, $container);
            } else {
                $this->createFieldset(null, $container);
            }
            $this->addFieldsFromConfig($config);
        }
        return $this;
    }
public function addFieldsetsFromConfig ( array $ fieldsets , $ container = null ) { foreach ( $ fieldsets as $ legend => $ config ) { if ( ! is_numeric ( $ legend ) ) { $ this -> createFieldset ( $ legend , $ container ) ; } else { $ this -> createFieldset ( null , $ container ) ; } $ this -> addFieldsFromConfig ( $ config ) ; } return $ this ; }
Method to add form fieldsets from config

@param  array  $fieldsets
@param  string $container
@return Form
Method to add form fieldsets from config