change .env
This commit is contained in:
parent
4b408758f3
commit
f0e8dc942c
6
.env
6
.env
@ -1,4 +1,4 @@
|
|||||||
[db]
|
[db]
|
||||||
dsn="mysql:host=localhost;dbname=wordpress;charset=UTF8"
|
dsn="mysql:host=localhost;dbname=LvZone;charset=UTF8"
|
||||||
id="wordpress"
|
id="LvZone"
|
||||||
passwd="12clqkidc@!"
|
passwd="Gotjd719248!"
|
||||||
|
|||||||
@ -29,7 +29,7 @@ abstract class Model
|
|||||||
final public function getDB()
|
final public function getDB()
|
||||||
{
|
{
|
||||||
if ($this->_db === null) {
|
if ($this->_db === null) {
|
||||||
$envs = parse_ini_file(APP . DIRECTORY_SEPARATOR . ".env.ini", true);
|
$envs = parse_ini_file(APP . DIRECTORY_SEPARATOR . ".env", true);
|
||||||
if (!$envs) {
|
if (!$envs) {
|
||||||
throw new Exception(var_export($envs, true));
|
throw new Exception(var_export($envs, true));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user