Esempio n. 1
0
 public function actionIndex()
 {
     $pages = new Pagination(['totalCount' => Topic::find()->count('id'), 'pageSize' => intval($this->settings['index_pagesize']), 'pageParam' => 'p']);
     return $this->render('index', ['topics' => Topic::getTopicsFromIndex($pages), 'pages' => $pages]);
 }