Function _js
JS file include helper
Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/utility_helper.php
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/utility_helper.php
string |
$file |
<p>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</p> |
string |
$subDir = '' |
The sub-directory under assets directory, where the file exists |
boolean |
$return = false |
<p>[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).</p> |
boolean
|
Return true if the file found and included, otherwise false |