input() html()
A bare <input> (no form row).
html()->input($name = '', $value = '', $extra = [])Опції
| Опція | Значення |
|---|---|
$name, $value | Name and value (escaped). |
type, id, class, class_add, placeholder, desc, style, size, maxlength, disabled, readonly, required, data-* | Attributes; desc is the default placeholder. |
Приклад
Код
return html()->input('input_name', 'some value') . ' ' . html()->input(['name' => 'qty', 'type' => 'number', 'value' => 2, 'class_add' => 'input-small']);Див. також: form/input, html/textarea