0

Is it possible to disable js loading manually in Yii? I know Yii loads automatically scripts if are required. I want to disable them for debugging. I was looking in the config.main but in vain.

anyone ?

Regards

kouwen
  • 133
  • 1
  • 1
  • 8

2 Answers2

3

In your config.main file, describe this as component.

'clientScript' =>array('scriptMap'=> array(
                'jquery.js'=>false,
                'jquery.ba-bbq.js'=>false,
                'jquery.yiilistview.js'=>false
            )); 
Sudhanshu Saxena
  • 1,199
  • 12
  • 32
0

In your config file main.php in components array:

'clientScript' => array('scriptMap' => array('jquery.js' => false, )),

Exclude scripts which you dont need or load your scripts. Include CSS,javascript file in Yii Framework

Community
  • 1
  • 1
ineersa
  • 3,445
  • 30
  • 40