I am trying to render both a form and related grid view in Tabs widget.
I am not able to find any error. No errors is being generated.
But I am not getting the grid to show on the page.
<?php
echo Tabs::widget([
'items' => [
[
'label' => 'State',
'content' => $form->field($model, 'state_name')->textInput(['maxlength' => 100])
.'<div class="form-group">' .
Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) .'</div>',
'active' => true,
$dataProvider = new ActiveDataProvider(['query' => State::find(),'pagination' => ['pageSize' => 5]]),
GridView::widget([
'dataProvider' => $dataProvider,
//'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'state_name',
['class' => 'yii\grid\ActionColumn'],
],
])
],