Ejemplo n.º 1
0
 public function init()
 {
     $this->insertAssetVersion($this->resourceData['static']['css'][0]);
     $this->insertAssetVersion($this->resourceData['static']['js'][0]);
     $this->configureAsset($this->resourceData);
     parent::init();
 }
Ejemplo n.º 2
0
 public function init()
 {
     $this->insertAssetVersion($this->resourceData['published']['sourcePath']);
     $this->insertAssetVersion($this->resourceData['static']['baseUrl']);
     $this->configureAsset($this->resourceData);
     parent::init();
 }
Ejemplo n.º 3
0
 public function init()
 {
     $this->insertAssetVersion($this->resourceData['static']['baseUrl']);
     // '##-version-##'
     if (isset(\Yii::$app->params['p2assets']['bootswatchTheme'])) {
         $themeName = \Yii::$app->params['p2assets']['bootswatchTheme'];
         $this->resourceData['sourcePath'] = '@vendor/bower/bootswatch/' . $themeName;
         $this->resourceData['published']['baseUrl'] = ['bootswatch/3.3.6/' . $themeName];
         $this->resourceData['published']['css'] = ['bootstrap.min.css'];
         $this->resourceData['static']['css'] = ['bootstrap.min.css'];
     }
     $this->configureAsset($this->resourceData);
     parent::init();
 }
Ejemplo n.º 4
0
 public function init()
 {
     $this->configureAsset($this->resourceData);
     parent::init();
 }