public function addScript ($src, $prepend = false)
		{
			if ($prepend) {
				array_unshift($this->scriptUrls, $src);
			} else {
				$this->scriptUrls[] = $src;
			}

			$html = '<script type="text/javascript" src="' . $this->sanitize($src) . '"></script>';

			$this->addHeader($html, $prepend);
		}
public function addScript ($src, $prepend = false)
		{
			if ($prepend) {
				array_unshift($this->scriptUrls, $src);
			} else {
				$this->scriptUrls[] = $src;
			}

			$html = '<script type="text/javascript" src="' . $this->sanitize($src) . '"></script>';

			$this->addHeader($html, $prepend);
		}
public function addScript ( $ src , $ prepend = false ) { if ( $ prepend ) { array_unshift ( $ this -> scriptUrls , $ src ) ; } else { $ this -> scriptUrls [ ] = $ src ; } $ html = '<script type="text/javascript" src="' . $ this -> sanitize ( $ src ) . '"></script>' ; $ this -> addHeader ( $ html , $ prepend ) ; }
addScript function.

Adds scripts to head.

@access public

@param string $src
@param bool   $prepend (default: false)

@return void
addScript function .