php - Yii2 Unknown Property Exception in Server -
i have view displaying grid view particular model. in local machine, it's working when deploy application server, attribute not found hence unknown property exception. when @ code though, attribute there.
any ideas?
here model class code: http://codebin.org/view/f0a713c1
the view code:
echo gridview::widget([ 'dataprovider' => $dataprovider, 'filtermodel' => $searchmodel, 'columns' => [ [ 'attribute' => 'is_condemned', 'label' => 'condemned', 'class' => '\kartik\grid\booleancolumn', 'falselabel' => 'active', 'truelabel' => 'condemned' ], ], // set toolbar 'toolbar' => [ ['content' => html::a(fa::icon('plus') . ' add', ['/equipment/default/create'], ['class' => 'btn btn-success']) ], '{export}', '{toggledata}', ], // set export properties 'export' => [ 'fontawesome' => true, 'filename' => 'equipment-export-'.time(), 'exportconfig' => [ 'html' => ['showcaption' => false], 'pdf' => ['showcaption' => false], ], ], 'bordered' => true, 'striped' => true, 'condensed' => true, 'responsive' => true, 'hover' => true, 'showpagesummary' => true, 'panel' => [ 'type' => gridview::type_primary, 'heading' => '', ], 'persistresize' => false, ]);
the reason why wasn't working model class being imported in lowercase. apparently, entered wrong value in gii. in other servers case-sensitive.
Comments
Post a Comment