A
A
Alexander2015-06-27 13:50:48
Yii
Alexander, 2015-06-27 13:50:48

(not set) GridView::widget, why doesn't it show records from the database?

bd9630cb42244154a0e193200ee713bc.png
a7fac80e9ed94db396fde6fe7e3ed52b.png
Why doesn't it show the entry from the database?
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'username',
'email:email',
// 'password',
// 'create',
'ban',
'role',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2015-06-27
@opium

look in the model the problem is there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question