Difference between #13 and #14 of
How to register scripts and css

Revision #14 has been created by oligalma on Oct 2, 2015, 2:20:45 AM with the memo:

to register raw JavaScripts (like Google Analytics), we must add "CClientScript::POS_END"
« previous (#13)

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 || [];
[...]
2 0
3 followers
Viewed: 95 101 times
Version: 1.1
Category: How-tos
Written by: oligalma
Last updated by: oligalma
Created on: Mar 13, 2015
Last updated: 9 years ago
Update Article

Revisions

View all history