I have a codigniter project with a custom config file called
application/config/my_config_variables.php:
This contains
<?php
$config['days'] = 20;
in :
application/config/autoload.php
I've added:
$autoload['config'] = array('my_config_variables');
when I try to access this in my controller using:
echo $this->$config['new_daily_contacts'];
I get:
Fatal error: Cannot access empty property.
What am I doing wrong?
addendum:
In my controller I've added:
// An alternate way to specify the same item:
$my_config = $this->config->item('my_config_variables',true);
var_dump($my_config);
this outputs FALSE -- why?