/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class javascript_Core { static public function add($file) { self::$scripts[] = $file; } static public function render($print = FALSE) { $output = ''; foreach (self::$scripts as $script) $output .= html::script($script); if ($print) echo $output; return $output; } } // End javascript_Core