Page::addJsFile()
\nn\t3::Page()->addJsFile($path, $compress = false, $atTop = false, $wrap = false, $concat = false);
JS-Datei in <head> einschleusen
Siehe \nn\t3::Page()->addHeader() für einfachere Version.
\nn\t3::Page()->addJsFile( 'path/to/file.js' );
Copied!
| @return void
Source Code
public function addJsFile($path, $compress = false, $atTop = false, $wrap = false, $concat = false ) {
$pageRenderer = $this->getPageRenderer();
$pageRenderer->addJsFile( $path, NULL, $compress, $atTop, $wrap, $concat );
}
Copied!