public function hiddenFields($hiddenFields = null) {
		if (empty($hiddenFields)) {
			return null;
		}

		if (!is_array($hiddenFields)) {
			$hiddenFields = [$hiddenFields];
		}

		$result = '';
		$options = ['type' => 'hidden'];
		foreach ($hiddenFields as $hiddenField) {
			$result .= $this->input($hiddenField, $options);
			if ($this->isFieldError($hiddenField)) {
				$result .= $this->Html->div(
					'form-group has-error',
					$this->error($hiddenField, null, ['class' => 'help-block'])
				);
			}
		}

		return $result;
	}
public function hiddenFields($hiddenFields = null) {
		if (empty($hiddenFields)) {
			return null;
		}

		if (!is_array($hiddenFields)) {
			$hiddenFields = [$hiddenFields];
		}

		$result = '';
		$options = ['type' => 'hidden'];
		foreach ($hiddenFields as $hiddenField) {
			$result .= $this->input($hiddenField, $options);
			if ($this->isFieldError($hiddenField)) {
				$result .= $this->Html->div(
					'form-group has-error',
					$this->error($hiddenField, null, ['class' => 'help-block'])
				);
			}
		}

		return $result;
	}
public function hiddenFields ( $ hiddenFields = null ) { if ( empty ( $ hiddenFields ) ) { return null ; } if ( ! is_array ( $ hiddenFields ) ) { $ hiddenFields = [ $ hiddenFields ] ; } $ result = '' ; $ options = [ 'type' => 'hidden' ] ; foreach ( $ hiddenFields as $ hiddenField ) { $ result .= $ this -> input ( $ hiddenField , $ options ) ; if ( $ this -> isFieldError ( $ hiddenField ) ) { $ result .= $ this -> Html -> div ( 'form-group has-error' , $ this -> error ( $ hiddenField , null , [ 'class' => 'help-block' ] ) ) ; } } return $ result ; }
Create hidden fields with validation error message.

@param array|string $hiddenFields List of hidden fields
name, like this "Modelname.fieldname"
@return string|null An HTML hidden input elements with error message block.
Create hidden fields with validation error message .