diff --git a/Controller.php b/Controller.php index da6f044..db8ebba 100644 --- a/Controller.php +++ b/Controller.php @@ -10,6 +10,7 @@ use Yii; use yii\helpers\Json; +use yii\helpers\Url; use yii\web\Controller as BaseController; use yii\web\JsExpression; use yii\web\NotFoundHttpException; @@ -74,7 +75,7 @@ public function actionManager(){ throw new NotFoundHttpException; $options = [ - 'url'=> $this->createUrl('connect'), + 'url'=> Url::toRoute('connect'), 'customData' => [ Yii::$app->request->csrfParam => Yii::$app->request->csrfToken ], @@ -116,4 +117,4 @@ public function actionManager(){ return $this->renderFile(__DIR__."/views/manager.php", ['options'=>$options]); } -} \ No newline at end of file +}