phper,PHP学习_PHP技术_PHP网站建设_PHP程序员专注于PHP技术研究及学习

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

yii 禁用默认加载的jquery与bootstrap

此文被围观818日期: 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

本站使用ThinkPHP框架开发读图网主题,目前托管在阿里云,图片由读图网提供. 蜀ICP备12031064号

Copyright © 2011-2017adophper.com All Rights Reserved.