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(
i created a proper class with all need https://github.com/codeigniterpower/code...nfigWriter
|
Welcome Guest, Not a member yet? Register Sign In |