title = Yii::t('app', 'BlogPosts'); $this->params['breadcrumbs'][] = $this->title; ?>
render('_search', ['model' => $searchModel]); ?>

'btn btn-success']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], //'id', 'title', //'text:ntext', [ 'attribute' => 'Picture', 'format' => 'raw', 'value' => function($model){ return Html::img($model->getPicture(),['class' => 'img-responsive', 'style' => 'max-width : 150px ']); } ], [ 'attribute' => 'cat_id', 'value' => 'category.title', 'filter' => Select2::widget([ 'model' => $searchModel, 'attribute' => 'cat_id', 'data' => ArrayHelper::map(Categoriesblog::find()->all(), 'id', 'title'), 'options' => [ 'placeholder' => Yii::t('app','Choose category'), 'allowClear' => true, ], ]) ] , 'description', 'key_words', ['class' => 'yii\grid\ActionColumn'], ], ]); ?>