helpers\BaseHtml script()

script() public static method

Generates a script tag.

public static string script ( $content, $options = [] )
$content string

The script content

$options array

The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute will not be rendered. See renderTagAttributes() for details on how attributes are being rendered.

return string

The generated script tag

doc_Yii
2016-10-30 17:05:16
Comments
Leave a Comment

Please login to continue.