Is it possible to move Config folder into root? |
(09-13-2020, 06:43 PM)MrWhite Wrote: But the problem is config options like supportedLocales, appTimezone are not available in the .env file. but only available in the App.php config file. Wrong. In .env file you can set any config option from any config file https://codeigniter.com/user_guide/gener...-variables You can see an example of .env file - here you can see that there are options from App.php, Database.php and other config files from app/Config. (09-14-2020, 05:54 AM)John_Betong Wrote: I generate a "LOCALHOST" constant in index.php and used in Config.php and Database.php to modify variables. I also generate a JB_BASEURL which is used in Config.php. to set $base_url. You can get rid of all this by adding different .env files to different environments. Besides you can use CI_ENVIRONMENT variable https://codeigniter.com/user_guide/gener...ments.html |
Messages In This Thread |
Is it possible to move Config folder into root? - by MrWhite - 09-13-2020, 11:34 AM
RE: Is it possible to move Config folder into root? - by jreklund - 09-13-2020, 01:04 PM
RE: Is it possible to move Config folder into root? - by MrWhite - 09-13-2020, 06:43 PM
RE: Is it possible to move Config folder into root? - by T.O.M. - 09-14-2020, 01:20 PM
RE: Is it possible to move Config folder into root? - by John_Betong - 09-14-2020, 05:54 AM
RE: Is it possible to move Config folder into root? - by paulbalandan - 09-15-2020, 05:07 AM
RE: Is it possible to move Config folder into root? - by John_Betong - 09-15-2020, 07:38 AM
|