Solar_View_Helper_Head::addScriptBase()

public Solar_View_Helper_Head Solar_View_Helper_Head::addScriptBase ( string $src , array $attribs = 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.



Local