Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter initial configuration
#4

(This post was last modified: 05-05-2020, 12:08 PM by jreklund.)

Quote:jreklund It's recommended to set in .env, so you can have a different .env file on your severs.

Ha, OK, that was not clear for me after reading the documentation.

Quote:Please note you need to rename/copy your env into .env - There need to be a . (dot).
Code:
CI_ENVIRONMENT = development
app.baseURL = 'http://skribbl.example.com/'
app.indexPage = ''
database.default.hostname = localhost
database.default.database = skribbl
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi

So the database configuration in the /Config/Database.php is not used, right ?

Hum it's not working I still have the following error :

Code:
InvalidArgumentException

You have not selected a database type to connect to.
 
When I look at the arguments of  CodeIgniter\Database\Database->load ( arguments ), this is the arguments set in /Config/Database, not the parameters set in .env.
Reply


Messages In This Thread
CodeIgniter initial configuration - by imabot - 05-05-2020, 07:44 AM
RE: CodeIgniter initial configuration - by imabot - 05-05-2020, 11:57 AM
RE: CodeIgniter initial configuration - by imabot - 05-05-2020, 12:24 PM
RE: CodeIgniter initial configuration - by imabot - 05-05-2020, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB