Skip to content

Instantly share code, notes, and snippets.

@nickweavers
Created February 12, 2010 19:55
Show Gist options
  • Save nickweavers/302909 to your computer and use it in GitHub Desktop.
Save nickweavers/302909 to your computer and use it in GitHub Desktop.
<?php
$path = 'phploader/phploader/loader.php';
if (file_exists($path)) {
require_once $path;
$loader = new YAHOO_util_Loader("3.0.0");
$loader->base = "templates/".$this->template."/js/yui_3.0.0/";
//Specify YUI components to load
$loader->load("yui", "dom", "event", "event-resize");
//Output the tags (this call would most likely be placed in the document head
$css = $loader->css();
echo $css;
$script = $loader->script();
echo $script;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment