Where to Find the JS file located in the footer

Hi,

i have to add this coe of js


jQuery('#wlt-BaseDialog').dialog({'autoOpen':false,'maxHeight':600,'width':600,'resizable':false,'modal':true});

the problem is where will i find the directory to find the file that i can put that code… Thanks in advance

1 Like

if you want to place this code on every page put it at the bottom of protected/views/layouts/main.php … esle… please explain what you are trying to achieve.

1 Like

then publish your javascript to the asset folder




$cs = Yii::app()->getClientScript();

$cs->registerScriptFile(

Yii::app()->assetManager->publish(

assetsDir.'/somefile.js'

),

CClientScript::POS_END

);



more info: http://www.yiiframework.com/doc/api/1.1/CClientScript#registerScriptFile-detail

hope this helps

1 Like