src/View/Helper/FormHelper.php
public function create($model = null, array $options = [])
    {
        $options += ['process' => false, 'jsForm' => false];
        $options = $this->addClass($options, $this->_class('form'));

        $isProcess = $options['process'];

        if ($isProcess !== false) {
            $_options = [
                'url' => [
                    'plugin'     => $this->request->getParam('plugin'),
                    'controller' => $this->request->getParam('controller'),
                    'action'     => 'process'
                ]
            ];

            $options['jsForm'] = true;
            $options = Hash::merge($_options, $options);
        }

        $isJsForm = $options['jsForm'];
        if ($isJsForm) {
            $this->_isJsForm = true;
            $options = $this->addClass($options, 'jsForm');
        }

        unset($options['process'], $options['jsForm']);

        return parent::create($model, $options);
    }
public function create($model = null, array $options = [])
    {
        $options += ['process' => false, 'jsForm' => false];
        $options = $this->addClass($options, $this->_class('form'));

        $isProcess = $options['process'];

        if ($isProcess !== false) {
            $_options = [
                'url' => [
                    'plugin'     => $this->request->getParam('plugin'),
                    'controller' => $this->request->getParam('controller'),
                    'action'     => 'process'
                ]
            ];

            $options['jsForm'] = true;
            $options = Hash::merge($_options, $options);
        }

        $isJsForm = $options['jsForm'];
        if ($isJsForm) {
            $this->_isJsForm = true;
            $options = $this->addClass($options, 'jsForm');
        }

        unset($options['process'], $options['jsForm']);

        return parent::create($model, $options);
    }
public function create ( $ model = null , array $ options = [ ] ) { $ options += [ 'process' => false , 'jsForm' => false ] ; $ options = $ this -> addClass ( $ options , $ this -> _class ( 'form' ) ) ; $ isProcess = $ options [ 'process' ] ; if ( $ isProcess !== false ) { $ _options = [ 'url' => [ 'plugin' => $ this -> request -> getParam ( 'plugin' ) , 'controller' => $ this -> request -> getParam ( 'controller' ) , 'action' => 'process' ] ] ; $ options [ 'jsForm' ] = true ; $ options = Hash :: merge ( $ _options , $ options ) ; } $ isJsForm = $ options [ 'jsForm' ] ; if ( $ isJsForm ) { $ this -> _isJsForm = true ; $ options = $ this -> addClass ( $ options , 'jsForm' ) ; } unset ( $ options [ 'process' ] , $ options [ 'jsForm' ] ) ; return parent :: create ( $ model , $ options ) ; }
Create html form.

@param   mixed $model
@param   array $options
@return  string
Create html form .