registerJs() public method
Registers a JS code block.
public void registerJs ( $js, $position = self::POS_READY, $key = null ) | ||
---|---|---|
$js | string |
The JS code block to be registered |
$position | integer |
The position at which the JS script tag should be inserted in a page. The possible values are:
|
$key | string |
The key that identifies the JS code block. If null, it will use $js as the key. If two JS code blocks are registered with the same key, the latter will overwrite the former. |
Please login to continue.