Revision: 20311
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 11, 2009 18:53 by Actuarybrad
Initial Code
<?php defined('SYSPATH') OR die('No direct access allowed.'); class javascript_Core { static protected $scripts = array(); 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
Initial URL
Initial Description
Initial Title
Kohana Javascript Helper
Initial Tags
php
Initial Language
PHP