Commit f95ceccd1db7bcbde6e998d2b01d1f8d35910894
1 parent
b69994a3
component config add
Showing
3 changed files
with
9 additions
and
1 deletions
Show diff stats
common/components/SmsSender.php
common/config/main.php
frontend/controllers/SiteController.php
| ... | ... | @@ -182,7 +182,8 @@ class SiteController extends Controller |
| 182 | 182 | |
| 183 | 183 | public function actionSms() |
| 184 | 184 | { |
| 185 | - $resp = SmsSender::send('+380633930736','test Rukzak'); | |
| 185 | + | |
| 186 | + $resp = Yii::$app->smssender->send('+380633930736','test Rukzak'); | |
| 186 | 187 | var_dump($resp); |
| 187 | 188 | |
| 188 | 189 | } | ... | ... |