Brimbox Logo Brimbox Version 2.3.4 Released


Method to include CSS and Javascript files using the link and script tags.

Class: bb_main, called as $main

File: bb_main.php (php)


function include_file($filepaths, $type)


$main->include_file($filepaths, $type);

Outputs: A Javascript or CSS file link.

Note: array $filepaths of the form array(0=>array('file'=>filename,'version'=>version)).

Parameter: $filepaths (mixed)
String filename or array including file name and version.

Parameter: $type (string)
Either "css" or "js" depending on the file type.

Updated: 2016-07-11