Usage:
$this->javascripts->add('foo.css', array('media' => 'print'));
echo $this->javascripts;
| METHODS | |
|---|---|
add()
| adds a JavaScript file. |
get()
| returns all JavaScript files. |
__toString()
| returns a string representation of this helper as HTML. |
getName()
| returns the canonical name of this helper. |
Adds a JavaScript file.
| ARGUMENTS | |
|---|---|
$javascript |
A JavaScript file path |
$attributes |
An array of attributes |
Returns all JavaScript files.
| ARGUMENTS |
|---|
Returns a string representation of this helper as HTML.
returns The HTML representation of the JavaScripts
Returns the canonical name of this helper.
returns The canonical name
