Yii1 控制前端载入文件

Yii::app()->clientScript->registerCssFile(CSS_URL.'reset.css');
Yii::app()->clientScript->registerCssFile(CSS_URL.'my.css');
Yii::app()->clientScript->registerCss('remove-footer',"#footer{display:none;}");
Yii::app()->clientScript->registerScriptFile(JS_URL.'remove_rmenu.js',CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile(JS_URL.'jquery-ui.min.js',CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile(SITE_URL.'/assets/MathJax2.5/MathJax.js?config=default',CClientScript::POS_HEAD);

 

posted @ 2015-09-14 17:11 透明白 阅读(...) 评论(...) 编辑 收藏