Welcome Guest, Not a member yet? Register   Sign In
Database-sample.php
#4

Hmmm - isn't application/config/database.php pretty much what you described?
And the user guide (https://www.codeigniter.com/user_guide/d...ation.html) goes into more details.

As it is, you only need to create an environment-specific folder underneath aplicaiton/config, and copy then tailor any config files (eg database). You might have to make sure to git ignore them.

We have done this with CodeIgniter 4, with sample files to customize (.env, phpunit.xml.dit, Vagrantfile.dist), with the tailored files already git ignored.
Reply


Messages In This Thread
Database-sample.php - by vitalykk1983 - 02-18-2019, 12:50 PM
RE: Database-sample.php - by ciadmin - 02-18-2019, 01:14 PM
RE: Database-sample.php - by vitalykk1983 - 02-18-2019, 01:48 PM
RE: Database-sample.php - by ciadmin - 02-18-2019, 02:32 PM
RE: Database-sample.php - by vitalykk1983 - 02-19-2019, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB