Welcome Guest, Not a member yet? Register   Sign In
Location and Name of CI v4 .env File
#2

I prefer to ONLY have common Local and Remote .env settings and use the following to test and modify app/config/ files:

PHP Code:
<?php // index.php
defined('LOCALHOST')
?:
define('LOCALHOST''localhost'===$_SERVER['SERVER_NAME']);

// app/Config/Database.php
public $default = [
'DSN'      => '',
'hostname' => 'localhost',
'username' => LOCALHOST 'localuser'     'onlineuser',
'password' => LOCALHOST 'localpassword' 'onlinepassword',
'database' => 'mydbname',
'DBDriver' => 'MySQLi'
... 
Reply


Messages In This Thread
RE: Location and Name of CI v4 .env File - by John_Betong - 11-10-2020, 11:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB