Permalink
Browse files

Changed assets settings

  • Loading branch information...
Nikolay I. Belichuk
Nikolay I. Belichuk committed Feb 7, 2013
1 parent 37c83f2 commit 6752fedc0efe085bd49d9558c16162bcdc07b53e
Showing with 5 additions and 4 deletions.
  1. +5 −4 EMenu.php
View
@@ -23,10 +23,11 @@ public function init()
$menuClass = 'accordion-menu';
$cs = Yii::app()->clientScript;
- $assets = Yii::getPathOfAlias('ext.widgets.assets');
+ $dirname = basename(dirname(__FILE__));
+ $assets = Yii::getPathOfAlias('ext.'.$dirname);
$assetUrl = Yii::app()->assetManager->publish($assets);
- $css = $assetUrl . '/emenu/css/accordionmenu.css';
- $js = $assetUrl . '/emenu/js/accordionmenu.min.js';
+ $css = $assetUrl . '/assets/css/accordionmenu.css';
+ $js = $assetUrl . '/assets/js/accordionmenu.min.js';
Yii::app()->clientScript->registerCSSFile( $css );
Yii::app()->clientScript->registerScriptFile( $js );
@@ -121,4 +122,4 @@ private function renderTag($item, $level=1)
$menu .= CHtml::tag($this->subtag, array('class'=> implode(' ', $subclass)), $content);
return $menu;
}
-}
+}

0 comments on commit 6752fed

Please sign in to comment.