예제 #1
0
 public function testScript()
 {
     $script = Html::script('http://pagon.github.com');
     $this->assertEquals('<script src="http://pagon.github.com" type="text/javascript"></script>', $script);
 }
예제 #2
0
/**
 * Create script link
 *
 * @param string $src
 * @param array  $attributes
 * @return string
 */
function script($src, array $attributes = array())
{
    return Html::script($src, $attributes);
}