Pretty often I need to access $config variables in views. I know I can pass them from controller to load->view(). But it seems excessive to do i
$config
load->view()
You can do something like that:
$ci = get_instance(); // CI_Loader instance $ci->load->config('email'); echo $ci->config->item('name');