public function run() { //$comments = Comment::find()->where(['status' => Comment::STATUS_ACTIVE])->orderBy(['create_time' => SORT_DESC])->limit($this->maxComments)->all(); $comments = BlogComment::findRecentComments($this->maxComments); return $this->render('recentComments', ['title' => $this->title, 'comments' => $comments]); }