first
This commit is contained in:
13
examples/active_form.php
Normal file
13
examples/active_form.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?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();
|
Reference in New Issue
Block a user