JS file include helper
Parameters | |||
---|---|---|---|
string
|
$file |
An absolute file path or just file name. The file name only will be prepended the folder name js/ and it will be looked in every sub-sites "js" folder |
# |
string
|
$subDir = '' |
The sub-directory under assets directory, where the file exists |
# |
bool
|
$return = false |
[optional] If you would like to capture the output of _js, use the return parameter. If this parameter is set to true, _js will return its output, instead of printing it (which it does by default). |
# |
Returns | |
---|---|
boolean
|
Return true if the file found and included, otherwise false |