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

0

2 Answers 2

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
            )); 
Sign up to request clarification or add additional context in comments.

Comments

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.