Solar_View_Helper_Foot::addScript()

public Solar_View_Helper_Head Solar_View_Helper_Foot::addScript ( string $src , array $attribs = NULL )

Adds a <script> tag as part of the "additional" (override) scripts.

Parameters

  • (string) $src: The file HREF for the script source.

  • (array) $attribs: Attributes for the tag.

Returns

  • (Solar_View_Helper_Head)

Description

Adds a <script> tag as part of the "additional" (override) scripts.

Generally used by views, not layouts. If the file has already been added, it does not get added again.



Local