PHP技术,PHP研究及学习,Python学习,人工智能,大数据服务

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

yii 禁用默认加载的jquery与bootstrap

此文被围观1037日期: 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-2018adophper.com All Rights Reserved.