I just switched to Yii2. How to make a text box as follows:
<?= $form->field($model, 'xxx') ?>
but without using any model?
Use yii\helpers\Htmland try something like:
yii\helpers\Html
<?= Html::textInput('xxx', value, options[]); ?>
textInput ()
I would add a label and a form-controlBootstrap class :
form-control
<?= Html::label('Person', 'xxx') ?> <?= Html::textInput('xxx', value, ['class' => 'form-control']) ?>
Source: https://habr.com/ru/post/1618525/More articles:Обновление вложенных объектов EntityFramework - c#Cordoba - Geolocation seems very unstable on different devices - androidAccess to permission object in controller - angularjsCrash in Java Collections.sort? The first time it starts, it takes up to 50 times until the next time - java"Map" of a nested list in Python - pythonConvert pandas data to list - pythonСумма цифр числа в sql-сервере без использования традиционных циклов, например while - sqlUICollectionView scrolls when selecting a cell - ios"Resource never closes" in try-with-resources when chaining methods - javaпакетная обработка таблицы данных С# - c#All Articles