diff --git a/Jii/Jii.php b/Jii/Jii.php index 417081c..2f2078b 100755 --- a/Jii/Jii.php +++ b/Jii/Jii.php @@ -24,7 +24,10 @@ public function init() } // publish jii script - $jii_js = Yii::app()->assetManager->publish(Yii::getPathOfAlias('application.components.Jii.js') . DIRECTORY_SEPARATOR . $this->config['script']); + + $jsPath = __DIR__ . DIRECTORY_SEPARATOR . 'js'; + + $jii_js = Yii::app()->assetManager->publish( $jsPath . DIRECTORY_SEPARATOR . $this->config['script']); // registers jii Yii::app()->clientScript->registerScriptFile($jii_js, CClientScript::POS_END);