public function create($model = null, array $options = [])
    {
        // @codeCoverageIgnoreStart
        if (isset($options['horizontal'])) {
            if ($options['horizontal'] === true) {
                $options['horizontal'] = 'horizontal';
            }
            $options['align'] = $options['horizontal'];
            unset($options['horizontal']);
            trigger_error('The `horizontal` option is deprecated. Use `align` instead.');
        }
        // @codeCoverageIgnoreEnd

        $options += [
            'class' => null,
            'role' => 'form',
            'align' => null,
            'templates' => [],
        ];

        return parent::create($model, $this->_formAlignment($options));
    }
public function create($model = null, array $options = [])
    {
        // @codeCoverageIgnoreStart
        if (isset($options['horizontal'])) {
            if ($options['horizontal'] === true) {
                $options['horizontal'] = 'horizontal';
            }
            $options['align'] = $options['horizontal'];
            unset($options['horizontal']);
            trigger_error('The `horizontal` option is deprecated. Use `align` instead.');
        }
        // @codeCoverageIgnoreEnd

        $options += [
            'class' => null,
            'role' => 'form',
            'align' => null,
            'templates' => [],
        ];

        return parent::create($model, $this->_formAlignment($options));
    }
public function create ( $ model = null , array $ options = [ ] ) { // @codeCoverageIgnoreStart if ( isset ( $ options [ 'horizontal' ] ) ) { if ( $ options [ 'horizontal' ] === true ) { $ options [ 'horizontal' ] = 'horizontal' ; } $ options [ 'align' ] = $ options [ 'horizontal' ] ; unset ( $ options [ 'horizontal' ] ) ; trigger_error ( 'The `horizontal` option is deprecated. Use `align` instead.' ) ; } // @codeCoverageIgnoreEnd $ options += [ 'class' => null , 'role' => 'form' , 'align' => null , 'templates' => [ ] , ] ; return parent :: create ( $ model , $ this -> _formAlignment ( $ options ) ) ; }
Returns an HTML FORM element.

@param mixed $model The context for which the form is being defined. Can
be an ORM entity, ORM resultset, or an array of meta data. You can use false or null
to make a model-less form.
@param array $options An array of html attributes and options.
@return string An formatted opening FORM tag.
Returns an HTML FORM element .