Cake\View\Helper\FormHelper::inputs PHP Method

inputs() public method

You can customize individual inputs through $fields. $this->Form->inputs([ 'name' => ['label' => 'custom label'], 'email' ]);
public inputs ( array $fields, array $options = [] ) : string
$fields array An array of the fields to generate. This array allows you to set custom types, labels, or other options.
$options array Options array. Valid keys are: - `fieldset` Set to false to disable the fieldset. You can also pass an array of params to be applied as HTML attributes to the fieldset tag. If you pass an empty array, the fieldset will be enabled - `legend` Set to false to disable the legend for the generated input set. Or supply a string to customize the legend text.
return string Completed form inputs.
    public function inputs(array $fields, array $options = [])
    {
        $fields = Hash::normalize($fields);
        $out = '';
        foreach ($fields as $name => $opts) {
            if ($opts === false) {
                continue;
            }
            $out .= $this->input($name, (array) $opts);
        }
        return $this->fieldset($out, $options);
    }