Previous Page
addMetaName()

Solar_App_Base_Helper_Head
addScript()

Next Page
addScriptBase()

addScript()

public Solar_View_Helper_Head addScript ( string $src, array $attribs default NULL )

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

Inherited from Solar_View_Helper_Head.

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.