how to disable particular js file in only particular view yii2 -


i doing ajax call , render view page in modal popup. in view page js , css files included. in main page , ajax view page, js file got conflict.

i know how disable js file in view page in yii-1.00

like one

yii::$app()->clientscript->scriptmap['jquery.js'] = false; yii::$app()->clientscript->scriptmap['yii.js'] = false; 

but dont know how in yii2.

so how can this.

thanks in advance.

if want exclude assets registered on layouts can use return $this->renderpartial("view"); controller action.

render partial

otherwise if view contain other javascripts/css files want inject rendering result may use return $this->renderajax("view") instead

render ajax


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -