diff --git a/ElFinderWidget.php b/ElFinderWidget.php index f78ef44..66f5aeb 100644 --- a/ElFinderWidget.php +++ b/ElFinderWidget.php @@ -30,7 +30,7 @@ public function run() { // set required options if (empty($this->connectorRoute)) throw new CException('$connectorRoute must be set!'); - $this->settings['url'] = Yii::app()->createUrl($this->connectorRoute); + $this->settings['url'] = Yii::app()->controller->createUrl($this->connectorRoute); $this->settings['lang'] = Yii::app()->language; $id = $this->getId();