Created
February 12, 2010 19:55
-
-
Save nickweavers/302909 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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