(08-04-2021, 02:41 AM)paulbalandan Wrote: I think I have a guess on the problem but needs some confirmation.
Can you share the code of your My_config?
Class objects are saved by reference by default so changing one should affect the other. I just need to confirm the structure of your config class to know the culprit behind this.
Here is sample code for your illustration, just ignore there is user array in my question:
PHP Code:
namespace Config;
use CodeIgniter\Config\BaseConfig;
class My_config extends BaseConfig {
public static $user = '';
public static function load_values() {
self::$user = "Any User Name";
}
}