<?php
$form=\yii\widgets\ActiveForm::begin(['action'=>\yii\helpers\Url::to('name/create')]);
echo $form->field($model,'name')->textInput( );
echo $form->field($model,'img')->fileInput();
echo \yii\helpers\Html::submitButton();
$form->end();
?>
2022-10-19 14:57:41
<?php
$form=\yii\widgets\ActiveForm::begin(['action'=>\yii\helpers\Url::to('name/create')]);
echo $form->field($model,'name')->textInput( );
echo $form->field($model,'img')->fileInput();
echo \yii\helpers\Html::submitButton();
$form->end();
?>