Autoload File
How to load JS/CSS file
$config['js-files'] = array();$config['css-files'] = array();Here is a stepwise syntax
// define an array for js files
1. $config['js-files'] = array();
// add array of js files
2. $config['js-files'] = array(
array(
"file" => '',
"location" => array(),
),
);
// added file path
3. $config['js-files'] = array(
array(
"file" => 'assets/js/file_1.js',
"location" => array(),
),
);
// add location
4. $config['js-files'] = array(
array(
"file" => 'assets/js/file_1.js',
"location" => array(
"controller_name_1/method_name",
),
),
);How to load Helpers file
How to load Third-party files
Last updated