forms_bundle/index.php

15 lines
362 B
PHP
Raw Normal View History

2024-07-25 12:33:47 +03:00
<?php
require_once __DIR__ . "/vendor/autoload.php";
$form = new \itguild\forms\ActiveForm();
$form->beginForm("/some_action");
2024-09-03 12:45:20 +03:00
$form->field(class: \itguild\forms\inputs\File::class, name: "login", params: [
2024-07-25 12:33:47 +03:00
'class' => "form-control",
2024-09-03 12:45:20 +03:00
'placeholder' => 'Файл',
2024-07-25 12:33:47 +03:00
])
2024-09-03 12:45:20 +03:00
->setLabel("Файл")
->setMultiple()
->render();
2024-07-25 12:33:47 +03:00
$form->endForm();