[eluser]runrun[/eluser]
I got a config file asset.php
My config file is like so
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['enable_compress'] = FALSE;
I want to load it in a library called Asset
My library code is like so
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Asset {
$CI =& get_instance();
$CI->config->load('asset'); //loading asset.php config file
function css()
{
$ai = $CI->config->item('enable_compress');
}
}
?>
You can see I'm attempting to load the config file. Problem is it doesn't work, it's showing me a blank webpage when I run this library.