Ejemplo n.º 1
0
 /**
  * Renders the index view for the module
  * @return string
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => Broadcast::find()->orderBy(['created_at' => SORT_DESC]), 'pagination' => ['pageSize' => 20]]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }