Permanently Update Config Items Dynamically |
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( |
Messages In This Thread |
Permanently Update Config Items Dynamically - by hollax - 03-19-2016, 04:16 PM
RE: Permanently Update Config Items Dynamically - by mckaygerhard - 09-02-2021, 12:26 PM
|