I would like to just display the attribute information in a $form-> in the same layout/format as the rest of the fields. I tried
$form->field($model,'first_name')->label()
but got an inputbox also.
Thanks in advanced.
I would like to just display the attribute information in a $form-> in the same layout/format as the rest of the fields. I tried
$form->field($model,'first_name')->label()
but got an inputbox also.
Thanks in advanced.
you can print out the field only and style it using css
<?= $model->first_name ?>
The problem is ‘What is the template used by Yii?’
I mean, yeah I could look at the generated code and recreate it, but I’m looking for a way to use the activeForm methods to just display the information without an input of any kind but with the same <div> layout.