Previous Page
addScript()

Solar_View_Helper_Head
addScriptBase()

Next Page
addScriptInline()

addScriptBase()

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

Adds a <script> tag as part of the "baseline" (foundation) 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 "baseline" (foundation) scripts.

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