public function open($options = [])
    {
        $options['method'] = self::getMethod($options);

        $options['action'] = self::getAction($options);

        $options['accept-charset'] = 'UTF-8';

        if (isset($options['files']) && $options['files']) {
            $options['enctype'] = 'multipart/form-data';
        }

        $options = $this->attributes($options);

        return '<form'.$options.'>';
    }
public function open($options = [])
    {
        $options['method'] = self::getMethod($options);

        $options['action'] = self::getAction($options);

        $options['accept-charset'] = 'UTF-8';

        if (isset($options['files']) && $options['files']) {
            $options['enctype'] = 'multipart/form-data';
        }

        $options = $this->attributes($options);

        return '<form'.$options.'>';
    }
public function open ( $ options = [ ] ) { $ options [ 'method' ] = self :: getMethod ( $ options ) ; $ options [ 'action' ] = self :: getAction ( $ options ) ; $ options [ 'accept-charset' ] = 'UTF-8' ; if ( isset ( $ options [ 'files' ] ) && $ options [ 'files' ] ) { $ options [ 'enctype' ] = 'multipart/form-data' ; } $ options = $ this -> attributes ( $ options ) ; return '<form' . $ options . '>' ; }
Open a new form object.

@param array $options - Form options

@return string
Open a new form object .