How edit config field? |
Hi
I have field in config.php file named "token" I need change it for always when use change token Actually,write new data to file Maybe?
I played around with this a little today using CI 4 here is the code, should work for CI 3.
There is no error handling or checks but it doe's work. I' am planning on writing a config file editor later when I have the time. PHP Code: public function index() At least it is something to get you started. If you use the code make sure you add in protect and check for errors. You will need to change the paths for CI 3. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(02-02-2020, 10:11 AM)InsiteFX Wrote: I played around with this a little today using CI 4 here is the code, should work for CI 3. I had guessed Thanks |
Welcome Guest, Not a member yet? Register Sign In |