User Tools

Site Tools



Tina4 uses a .env file to setup project constants, a .env will be created for you when the system runs for the first time. If you specify an environment variable on your OS called ENVIRONMENT then .env.ENVIRONMENT will be loaded instead.

Example of a .env file:

 [Section]           <-- Group section, only for pretty env file
 MY_VAR=Test         <-- Example declaration
 SOMETHING="Hello"   <-- Other valid example SOMETHING will be Hello
 TEST_ARRAY=["ONE", "TWO", "THREE"] <-- Will not work on older version of PHP
 # A commment        <-- This is a comment
 [Another Section]
tina4/env.txt · Last modified: 2021/03/17 13:49 by andre