i want to display the username based on user that login to the application and put it inside field form (username)
this is code for my form<?= $form->field($model, 'username')->textInput(['maxlength' => true])?>
this is code for calling the username based on the login user
<?=Yii::$app->user->identity->username ?>
but i dont know how to put the username inside the textinput