CodeIgniter Forums
Non PHP Config Files in CodeIgniter 3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Non PHP Config Files in CodeIgniter 3 (/showthread.php?tid=71936)



Non PHP Config Files in CodeIgniter 3 - ItsSeaJay - 10-14-2018

Is there a clean way of replacing the PHP config files in CodeIgniter 3 with a different format like JSON or TOML without having to type in the location of the value for each variable in the PHP file? Is this even a good idea?


RE: Non PHP Config Files in CodeIgniter 3 - Piotr - 10-14-2018

You can do everything what you want if you have time and skills but why you wanna change config to json? If you do this you must track every call to var in your config.php and change this or write something like wrapper. When new version of CI will be available you start from beginning. This is bad idea.