public function hidden($fieldName, array $options = [])
    {
        $options += ['required' => false, 'secure' => true];

        $secure = $options['secure'];
        unset($options['secure']);

        $options = $this->_initInputField($fieldName, array_merge(
            $options,
            ['secure' => static::SECURE_SKIP]
        ));

        if ($secure === true) {
            $this->_secure(true, $this->_secureFieldName($options['name']), (string)$options['val']);
        }

        $options['type'] = 'hidden';

        return $this->widget('hidden', $options);
    }
public function hidden($fieldName, array $options = [])
    {
        $options += ['required' => false, 'secure' => true];

        $secure = $options['secure'];
        unset($options['secure']);

        $options = $this->_initInputField($fieldName, array_merge(
            $options,
            ['secure' => static::SECURE_SKIP]
        ));

        if ($secure === true) {
            $this->_secure(true, $this->_secureFieldName($options['name']), (string)$options['val']);
        }

        $options['type'] = 'hidden';

        return $this->widget('hidden', $options);
    }
public function hidden ( $ fieldName , array $ options = [ ] ) { $ options += [ 'required' => false , 'secure' => true ] ; $ secure = $ options [ 'secure' ] ; unset ( $ options [ 'secure' ] ) ; $ options = $ this -> _initInputField ( $ fieldName , array_merge ( $ options , [ 'secure' => static :: SECURE_SKIP ] ) ) ; if ( $ secure === true ) { $ this -> _secure ( true , $ this -> _secureFieldName ( $ options [ 'name' ] ) , ( string ) $ options [ 'val' ] ) ; } $ options [ 'type' ] = 'hidden' ; return $ this -> widget ( 'hidden' , $ options ) ; }
Creates a hidden input field.

@param string $fieldName Name of a field, in the form of "modelname.fieldname"
@param array $options Array of HTML attributes.
@return string A generated hidden input
@link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-hidden-inputs
Creates a hidden input field .