forms_bundle/index.php
2024-07-25 12:33:47 +03:00

14 lines
343 B
PHP

<?php
require_once __DIR__ . "/vendor/autoload.php";
$form = new \itguild\forms\ActiveForm();
$form->beginForm("/some_action");
$form->field(class: \itguild\forms\inputs\TextInput::class, name: "login", params: [
'class' => "form-control",
'placeholder' => 'Логин',
])
->setLabel("Логин")
->render();
$form->endForm();