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.
otherwise if view contain other javascripts/css files want inject rendering result may use return $this->renderajax("view")
instead
Comments
Post a Comment