[eluser]neekey[/eluser]
I have a custom config file setting.php in ~/application/config/
then I want CI to autoload it so I add something like this in autoload.php:
Code:
$autoload['config'] = array("setting");
however, in my controller i get false from
Code:
$this->config->item("setting");
and when I looked into the log file, i see "Config file loaded: application/config/setting.php",
and if I print_r $this->config, in the array I can found only "[is_loaded] => Array ( [0] => application/config/setting.php" related to setting.php.
but i can successfully get my config like this:
Code:
$this->config->load("setting", TRUE);
$set = $this->config->item("setting")
what's more, when I try to autoload model :
Code:
$autoload['model'] = array("m_ajax");
I get a 500 error, but when i changed it like this:
Code:
$autoload['model'] = array("m_ajax.php");
I get error:
"Unable to locate the model you have specified: m_ajax.php"
which confused me very much.....
I am in Ubuntu 10.04, and hope somebody can explain this stuff.... I was really frastrated...
by the way , english is not my native language, hope you guys can understand what i want to say...