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

13 lines
346 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();