Loading external CSS file

Permalink
Hi,
I'm trying to add a link through my theme to following external URL:
http://yui.yahooapis.com/pure/0.2.1/pure-min.css...

And the code goes something like that:
$v = View::getInstance();
$css = $html->css('http://yui.yahooapis.com/pure/0.2.1/pure-min.css');
$v->addHeaderItem($css);


However I encounter an issue where c5 adds a 'v' parameter (contains an md5 of the app version and password salt). This 'v' parameter causes Yahoo's engine to send a '400 Bad Request'.

Maybe HtmlHelper::css() is not the best solution for what I need?
Should I simply use a raw HTML statement?

 
seopher replied on at Permalink Best Answer Reply
seopher
I would just use a raw HTML statement, yeah.

The helpers are great, but the file you're referencing doesn't need any "help", if you forgive the horrific joke.

It's a fully qualified, absolute URL to an external file. It has no prior dependancies nor does it need scope of anything in C5. It doesn't need to be editable (or customisable), so I'd just hard-code that sucker straight into the header of your theme.
Shillo replied on at Permalink Reply
Yeah, good point. However I thought it might be a good practice to use one central method for loading CSS files.