Example #1
0
 protected static function baseScriptUrl()
 {
     if (!self::$_initialized) {
         self::$basePath = dirname(__FILE__) . '/assets';
         self::$baseUrl = Yii::app()->getAssetManager()->publish(self::$basePath, false, -1, YII_DEBUG);
         self::$_initialized = true;
     }
     return self::$baseUrl;
 }
Example #2
0
 public function renderPager()
 {
     parent::renderPager();
     MyYii::registerCss('/css/mygrid.css');
 }