I have done quite some research, however most of the sources date very long back, so I am a bit confused as for how to do it in CI 3.x.
I have an application that is cloned for each and every user and runs independently from all the other instances. Every instances might be different in the way the calculate expenses and that is where the global variable comes in.
I have qucikly implemented the following solution:
*in application/config/config.php*
$config['expenses_calculation'] = 'monthly';
I can now acces the variable pretty much everywhere like this:
$this->config->config['expenses_calculation'];
However, I am new to CI and I believe that there has to be the right way for doing this and it is not the example provided by me.
Any hlep or guidance is much appreciated.