Welcome Guest, Not a member yet? Register   Sign In
2 Baseurl
#4

(This post was last modified: 08-23-2020, 01:55 AM by jreklund.)

You can always put it in the __construct or you can modify your /public/index.php to handle all your "Environment variables" set by Apache/Nginx, and define it (just as we do with FCPATH). And use the defined name in /app/Config/App.php.

With the example given, it's just better to have two different .env files, if you just need different live and development settings.
Reply


Messages In This Thread
2 Baseurl - by pippuccio76 - 08-20-2020, 03:01 AM
RE: 2 Baseurl - by jreklund - 08-22-2020, 12:00 AM
RE: 2 Baseurl - by pippuccio76 - 08-23-2020, 01:43 AM
RE: 2 Baseurl - by jreklund - 08-23-2020, 01:53 AM
RE: 2 Baseurl - by pippuccio76 - 08-23-2020, 06:27 AM
RE: 2 Baseurl - by jreklund - 08-23-2020, 06:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB