public function actionComment() { $user_id = 1; $comment = new Comment(); $pagination = new Pagination(['defaultPageSize' => 1, 'totalCount' => $comment->find()->where(['and', ['model_id' => $user_id, 'comment_type' => 1, 'comment_status' => 1]])->count()]); $commentlist = $comment->getComment($user_id, $pagination); return $this->render('comment', ['comment' => $commentlist, 'pagination' => $pagination]); }