public function group($name, $balise, callable $callback, $attr = null)
    {
        $form  = new FormBuilder([]);
        call_user_func_array($callback, [ &$form ]);
        $group = $this->merge_attr([ 'balise' => $balise ], $attr);

        return $this->input($name, [ 'type' => 'group', 'subform' => $form, 'attr' => $group ]);
    }
public function group($name, $balise, callable $callback, $attr = null)
    {
        $form  = new FormBuilder([]);
        call_user_func_array($callback, [ &$form ]);
        $group = $this->merge_attr([ 'balise' => $balise ], $attr);

        return $this->input($name, [ 'type' => 'group', 'subform' => $form, 'attr' => $group ]);
    }
public function group ( $ name , $ balise , callable $ callback , $ attr = null ) { $ form = new FormBuilder ( [ ] ) ; call_user_func_array ( $ callback , [ & $ form ] ) ; $ group = $ this -> merge_attr ( [ 'balise' => $ balise ] , $ attr ) ; return $ this -> input ( $ name , [ 'type' => 'group' , 'subform' => $ form , 'attr' => $ group ] ) ; }
Enregistre un groupe d'input.

@param string     $name     Nom du groupe.
@param string     $balise   Type de balise (div|span|fieldset).
@param callable   $callback Fonction de création du sous-formulaire.
@param array|null $attr     Liste d'attributs.

@return $this
Enregistre un groupe d input .