public function actionSendMessageToAll() { $post = Yii::$app->request->post(); AdminMessages::sendMessageToAll($post['message']); }