/**
  * Lists all Common models.
  *
  * @return mixed
  */
 public function actionIndex()
 {
     $models = Common::find()->where('status=:status', [':status' => Common::STATUS_VISIBLE])->all();
     $dataProvider = new ArrayDataProvider(['allModels' => $models, 'sort' => ['attributes' => ['id', 'slug', 'title', 'content', 'picture']], 'pagination' => ['pageSize' => 20]]);
     return $this->render('index', ['dataProvider' => $dataProvider, 'models' => $models]);
 }