From 7711847f6218f3daddb0e8968873834694b0a45a Mon Sep 17 00:00:00 2001 From: degger80 Date: Sat, 12 Apr 2014 11:14:36 -0700 Subject: [PATCH] Controller::createUrl changed to Url::toRoute refering to https://github.com/yiisoft/yii2/pull/2676 from yii2 removed: yii\web\Controller::createUrl yii\web\Controller::createAbsoluteUrl now use: yii\helpers\Url::toRoute --- Controller.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +}