forms_bundle/index.php
2024-09-03 12:45:20 +03:00

15 lines
362 B
PHP

<?php
require_once __DIR__ . "/vendor/autoload.php";
$form = new \itguild\forms\ActiveForm();
$form->beginForm("/some_action");
$form->field(class: \itguild\forms\inputs\File::class, name: "login", params: [
'class' => "form-control",
'placeholder' => 'Файл',
])
->setLabel("Файл")
->setMultiple()
->render();
$form->endForm();