• 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter initial configuration

#4
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.