Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Controller::createUrl changed to Url::toRoute #1

Merged
merged 1 commit into from
Apr 12, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
],
Expand Down Expand Up @@ -116,4 +117,4 @@ public function actionManager(){
return $this->renderFile(__DIR__."/views/manager.php", ['options'=>$options]);
}

}
}