[eluser]Dagobert Renouf[/eluser]
Hello guys,
I'm currently optimizing my first app code (a bit messy 'round here) and I'm trying to write config files to store MY specific data.
I created a file named "my_db_parameters" in the system/config folder, and I autoload it.
here's the file's code :
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['my_db_tables'] = array('blog' => 'blog_entries');
?>
when I try to call it in my blog model like this :
Code:
$this->config->my_db_tables('blog')
I have an error
Quote:Fatal error: Call to undefined method CI_Config::my_db_tables()
I don't get why this doesn't work, help me out BROTHERS.