Welcome Guest, Not a member yet? Register   Sign In
How do nested variables within the .env file work in CodeIgniter 4
#2

(This post was last modified: 06-30-2020, 12:05 PM by Dozor.)

To add onto this:

I've tried the following
Code:
CI_ENVIRONMENT = development
x = test
somerandomvariablename = foo

control = ${CI_ENVIRONMENT}
google.redirect1 = ${x}GoogleLogin
google.redirect2 = ${somerandomvariablename}GoogleLogin
justatestwithnodotinvarname = ${somerandomvariablename}GoogleLogin


Which produces the following in print_r($_ENV):
Code:
[CI_ENVIRONMENT] => development
[x] => test
[somerandomvariablename] => foo

[control] => development
[google.redirect1] => ${x}GoogleLogin
[google.redirect2] => ${somerandomvariablename}GoogleLogin
[justatestwithnodotinvarname] => ${somerandomvariablename}GoogleLogin
Reply


Messages In This Thread
RE: How do nested variables within the .env file work in CodeIgniter 4 - by Dozor - 06-30-2020, 12:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB