public function actionSend($resgterId, $message, $ios = 1) { $model = new Notifications(); if ($ios) { $model->sendPushNotificationToIOS($resgterId, $message); } else { $model->sendPushNotificationToAndriod($resgterId, $message); } $this->sendResponse($this->result); }