[eluser]Twisted1919[/eluser]
In your config.php file you can add your custom config if you want , as folows :
$config['site_css'] = $config['base_url'].'css/';
Then , you extend the Controller with MY_Controller and load that variable in it as follows :
Code:
Class MY_Controller extends Controller{
function MY_Controller()
{
$things = array('css_folder'=>$this->config->item('site_css'));
$this->load->vars($things);
}
}
Then , in any of your views you can simply type <?=$site_css;?> and will give you the path that you have in your config.php file .
For example, in your header you can load the style.css like :
<link rel="stylesheet" href="<?=$css_folder;?>style.css" type="text/css" />
I think you got the ideea .
Anyway, keeping your assets in your application directory, is not a good and practical ideea, keep them in your site root .