public function actionIndex() { $this->render('archive', ['data' => Post::model()->getArchive((int) Yii::app()->getRequest()->getQuery('blog'))]); }