PHP技术,网站开发,PHP,PHP学习,Python学习,PHP开发,人工智能,大数据服务

PHP+Python » 编程开发 » yii 禁用默认加载的jquery与bootstrap

yii 禁用默认加载的jquery与bootstrap

此文被围观1467日期: 2016-06-16 分类 : 编程开发  标签:  ···

要配置文件main.php中查看

'assetManager' => [
    'bundles' => [
        'yiiwebJqueryAsset' => [
            'js'=>[]
        ],
        'yiibootstrapBootstrapPluginAsset' => [
            'js'=>[]
        ],
        'yiibootstrapBootstrapAsset' => [
            'css' => [],
        ],

    ],
],


UPDATE

As Soju mentioned in comments, another alternative way would be disabling these files in AppAsset class, which is located in ./assets/, then remove the following lines:

public $depends = [
   'yiiwebYiiAsset',              #REMOVE
   'yiibootstrapBootstrapAsset',  #REMOVE
];


参考地址:http://blog.csdn.net/xmlife/article/details/49965277

© Copyright 2011-2019 adophper.com. All Rights Reserved.
读图网科技 版权所有。蜀ICP备12031064号