public function actionGetContent() { $id = Yii::$app->request->get('id'); $content = Messages::getContent($id); echo $content; }