14 lines
343 B
PHP
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(); |