[eluser]InsiteFX[/eluser]
Use a help file to do it, config files are loaded at the beginning so you cannot get it that way
Example:
Code:
// config file
$config['asset_path'] = 'assets/';
Code:
if ( ! function_exists('asset_url'))
{
function asset_url()
{
// the helper function doesn't have access to $this, so we need to get a reference to the
// CodeIgniter instance. We'll store that reference as $CI and use it instead of $this
$CI = get_instance();
// return the asset_url
return base_url() . $CI->config->item('asset_path');
}
}
// then
<?php echo asset_url();?>