/** * Get list of contacts. */ public function actionList() { $pageSize = Yii::$app->request->post('pageSize'); $currentPage = Yii::$app->request->post('currentPage'); return Follow::findAllByIdentityInBatch($pageSize, $currentPage); }