forms_bundle/examples/active_form.php

13 lines
341 B
PHP
Raw Permalink 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",
'placeholder' => 'Логин',
])
->setLabel("Логин")
->render();
$form->endForm();