Example #1
0
 /**
  * Comments list page.
  */
 public function actionIndex()
 {
     $searchModel = new CommentSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->get());
     $statusArray = Comment::getStatusArray();
     $modelArray = Model::getModelArray();
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel, 'statusArray' => $statusArray, 'modelArray' => $modelArray]);
 }