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
bettor
(Live Webscore)
January 16, 2012, 3:09pm
2
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
bettor
(Live Webscore)
January 17, 2012, 7:35am
4
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