beginForm('some'); ?> field(TextInput::class, name: "email", params: [ 'class' => "form-control", 'placeholder' => 'Email' ]) ->setTemplate(\itguild\forms\templates\bootstrap5\Bootstrap5Template::class) ->setLabel("Email") ->render(); $form->field(TextArea::class, name: "phone", params: ['class' => "form-control", 'placeholder' => 'phone', 'value'=> 'asd'])->setTemplate(\itguild\forms\templates\bootstrap5\Bootstrap5Template::class)->setLabel("Message")->render(); $form->field(class: Select::class, name: 'select2', params: ['value' => 2]) ->setOptions(['1' => 'bbb1', '2' => 'vvv3', 3 => 'ggg3', 4 => 'fgfgfgfg4'])->render(); ?>
endForm(); ?>