CodeIgniter Forums
Setup .env file by CI4 controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Setup .env file by CI4 controller (/showthread.php?tid=76054)



Setup .env file by CI4 controller - zdarin - 04-10-2020

Hello, im new in CI4 i would like to create setup database by CI4 it is possible write db connection data to .env file by controller or some services CI4? 
Also want when complete setup change environment in .env that user cant access setup.
If its not correct solution can some one tell how to do it best way?

im using CI 4.0.2