![]() |
Permanently Update Config Items Dynamically - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: Permanently Update Config Items Dynamically (/showthread.php?tid=64673) |
Permanently Update Config Items Dynamically - hollax - 03-19-2016 While i was working on a CI project, there was a need to allow user set the value of the config items ( i.e not requesting values from the database). For instance most CMS offers an interface where by you can insert db name, user and password during installation process. This gave birth to a library i created Array Config Writer. check Array Config Writer on Github on git hub. To use with CI ,
Example usage PHP Code: $this->load->library('config_writer', array( Viola the config gets updated. For multi dimensional array like the database PHP Code: $db['default']['hostname'] = 'localhost'; PHP Code: $this->load->library('config_writer', array( RE: Permanently Update Config Items Dynamically - mckaygerhard - 09-02-2021 i created a proper class with all need https://github.com/codeigniterpower/codeigniter-ArrayConfigWriter |