当前位置: 首页>>代码示例>>PHP>>正文


PHP AssetBundle::__construct方法代码示例

本文整理汇总了PHP中yii\web\AssetBundle::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AssetBundle::__construct方法的具体用法?PHP AssetBundle::__construct怎么用?PHP AssetBundle::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在yii\web\AssetBundle的用法示例。


在下文中一共展示了AssetBundle::__construct方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($config = [])
 {
     $this->js[] = $this->getGoogleMapScriptUrl();
     $this->js[] = 'js/google-map-marker.js';
     $this->css[] = 'css/google-map-marker.css';
     parent::__construct($config);
 }
开发者ID:ptelevich,项目名称:krasotka_promo,代码行数:7,代码来源:GoogleMapMarkerAsset.php

示例2: __construct

 public function __construct($config = [])
 {
     if (array_key_exists('js', $config)) {
         $this->jsIsSet = true;
     }
     if (array_key_exists('css', $config)) {
         $this->cssIsSet = true;
     }
     parent::__construct($config);
 }
开发者ID:execut,项目名称:yii2-base,代码行数:10,代码来源:AssetBundle.php

示例3: __construct

 public function __construct($config = [])
 {
     $this->js[] = $this->getGoogleMapScriptUrl();
     if (YII_DEBUG) {
         $this->js[] = 'js/map-input-widget.js';
     } else {
         $this->js[] = 'js/map-input-widget.min.js';
     }
     parent::__construct($config);
 }
开发者ID:rafaelsx,项目名称:yii2-map-input-widget,代码行数:10,代码来源:MapInputAsset.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     // Remove the default styles of the auth client.
     $bundles = Yii::$app->assetManager->bundles;
     $classPath = $this->depends[0];
     if (isset($bundles[$classPath])) {
         $bundles[$classPath]->css = [];
     }
 }
开发者ID:singleso,项目名称:singleso,代码行数:10,代码来源:OauthAsset.php

示例5: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     if (Yii::$app->helper->isRtl()) {
         $this->css[] = 'css/bootstrap-rtl.min.css';
     }
     if (Yii::$app->language == 'fa-IR') {
         $this->css[] = 'css/font.min.css';
     }
 }
开发者ID:rocketyang,项目名称:admap,代码行数:10,代码来源:AppAsset.php

示例6: __construct

 public function __construct($config = [])
 {
     $this->js[] = $this->getGoogleMapScriptUrl();
     $this->js[] = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js";
     if (YII_DEBUG) {
         $this->js[] = 'js/map-input-widget.js';
     } else {
         $this->js[] = 'js/map-input-widget.min.js';
     }
     parent::__construct($config);
 }
开发者ID:garixi,项目名称:yii2-map-input-widget,代码行数:11,代码来源:MapInputAsset.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     // Path Configuration
     $this->sourcePath = dirname(__DIR__) . '/resources';
     // Load CSS
     $this->css = ["styles/public.css"];
     // Load Javascript
     $this->js = ["scripts/vendor/conditionizr-4.4.0.min.js", "conditionizr/detects/ie6-ie7-ie8-ie9.js", "scripts/vendor/imagesloaded.pkgd-3.1.8.min.js", "scripts/cmgtools/cmt-core.js", "scripts/cmgtools/cmt-page-module.js", "scripts/main.js"];
     // Define the Position to load Assets
     $this->jsOptions = ["position" => View::POS_END];
     // Define dependent Asset Loaders
     $this->depends = ['yii\\web\\JqueryAsset'];
 }
开发者ID:cmsgears,项目名称:theme-multisite,代码行数:14,代码来源:PublicAssetBundle.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     // Change the default jQuery UI theme.
     $this->configureJuiTheme('base');
     // Get the current theme if set and valid.
     $theme = Theme::theme();
     // If not set or not valid, use the default theme.
     if (!$theme) {
         $this->depends = [static::$defaultThemeAsset];
         return;
     }
     // Configure bootstrap and jQuery UI theme.
     $this->configureBootstrap($theme->bootstrap);
     $this->configureJuiTheme($theme->juiTheme);
     // Setup the dependencies.
     $this->configureDependencies($theme->depends);
     $this->configureDependencies($theme->depends);
     // Set source path for the theme assets and register CSS and JS.
     $this->sourcePath = $theme->sourcePath;
     $this->configureDependencies($theme->depends);
     $this->configureCSS($theme->css);
     $this->configureJS($theme->js);
 }
开发者ID:singleso,项目名称:singleso,代码行数:24,代码来源:AppAsset.php

示例9: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->basePath = str_replace(['work', 'hrm', 'kpi'], ['common'], Yii::getAlias("@webroot"));
 }
开发者ID:maildownload1985,项目名称:codeCenterA,代码行数:5,代码来源:CommondAsset.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:cmsgears,项目名称:widget-cleditor,代码行数:4,代码来源:ClEditorAssetBundle.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->baseUrl = \yii::getAlias('@base_url');
 }
开发者ID:rubedkhan2149,项目名称:2149,代码行数:5,代码来源:AppAsset.php

示例12: __construct

 public function __construct($config = [])
 {
     parent::__construct($config);
     $this->sourcePath = __DIR__ . DIRECTORY_SEPARATOR . 'assets';
 }
开发者ID:igribov,项目名称:question-list,代码行数:5,代码来源:QuestionListBaseAsset.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     // Path Configuration
     $this->sourcePath = dirname(__FILE__) . '/resources';
 }
开发者ID:foxslider,项目名称:cmg-plugin,代码行数:6,代码来源:FxsAssetBundle.php

示例14: __construct

 /**
  * @inheritdoc
  */
 public function __construct($config = [])
 {
     $this->sourcePath = dirname(__FILE__);
     parent::__construct($config);
 }
开发者ID:dlds,项目名称:yii2-ecom,代码行数:8,代码来源:PayAssetBundle.php


注:本文中的yii\web\AssetBundle::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。