Difference between #5 and #6 of
CSS, JS and image URL shortcut methods

Revision #6 has been created by Roman Solomatin on Nov 8, 2010, 6:02:55 PM with the memo:

Added URL tag.
« previous (#5) next (#7) »

Changes

Title unchanged

CSS, JS and image URL shortcut methods

Category unchanged

Tutorials

Yii version unchanged

Tags changed

URL

Content unchanged

[...]
This is much cleaner and shorter then prefixing the URLs manually. Also, if you ever wish to move the directory of some sort of asset, all you need to do is modify the corresponding method in Html.

You may note that in the above example, `Html` does not *have* to extend `CHtml`. Neither do you have to name the class `Html`. It's all personal preference.

### Links
[Chinese version](http://projects.ourplanet.tk/node/99)
2 1
4 followers
Viewed: 26 890 times
Version: 1.1
Category: Tutorials
Tags: URL
Written by: jonah
Last updated by: jonah
Created on: Sep 2, 2009
Last updated: 5 years ago
Update Article

Revisions

View all history