1. 程式人生 > >yii2 表單輸入框設定

yii2 表單輸入框設定

<?= $form->field($userRole, 'userid', ['options' =>['class' => 'bigDiv'] ])->textInput(['placeholder'=> 'ccc', 'class'=> 'inputSelf', 'maxlength' => true, 'value' => $user->id]) ?>
---------------------
作者:carrousel0516
來源:CSDN
原文:https://blog.csdn.net/carrousel0516/article/details/79923656