Changes
Title
unchanged
How to register scripts and css
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
register script, register css
Content
changed
[...]
$(\'#mydiv\').slideUp();
})
');
```
However, to register raw JavaScripts (like Google Analytics), we do thismust add "CClientScript::POS_END":
```php
Yii::app()->clientScript->registerScript('myjavascript', '
var _gaq = _gaq || [];[...]