38 lines
		
	
	
		
			911 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			911 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| use yii\helpers\Html;
 | |
| use yii\grid\GridView;
 | |
| 
 | |
| /* @var $this yii\web\View */
 | |
| /* @var $searchModel backend\modules\comment\models\CommentSearch */
 | |
| /* @var $dataProvider yii\data\ActiveDataProvider */
 | |
| 
 | |
| $this->title = 'Комментарии';
 | |
| $this->params['breadcrumbs'][] = $this->title;
 | |
| ?>
 | |
| <div class="comment-index">
 | |
| 
 | |
|     <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
 | |
| 
 | |
|     <p>
 | |
|         <?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
 | |
|     </p>
 | |
| 
 | |
|     <?= GridView::widget([
 | |
|         'dataProvider' => $dataProvider,
 | |
|         'filterModel' => $searchModel,
 | |
|         'columns' => [
 | |
|             ['class' => 'yii\grid\SerialColumn'],
 | |
| 
 | |
|             'id',
 | |
|             'created_at',
 | |
|             'user_id',
 | |
|             'entity_type',
 | |
|             //'status',
 | |
|             'text:ntext',
 | |
| 
 | |
|             ['class' => 'yii\grid\ActionColumn'],
 | |
|         ],
 | |
|     ]); ?>
 | |
| </div>
 |