-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent "Class not found" error that was occurred in some environments
- Loading branch information
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
|
||
namespace App\Config; | ||
|
||
use CodeIgniter\Database\Config; | ||
|
||
/** | ||
* Database Configuration | ||
*/ | ||
class Database extends Config | ||
{ | ||
/** | ||
* The directory that holds the Migrations and Seeds directories. | ||
*/ | ||
public string $filesPath = APPPATH . 'Database' . DIRECTORY_SEPARATOR; | ||
|
||
/** | ||
* Lets you choose which connection group to use if no other is specified. | ||
*/ | ||
public string $defaultGroup = 'cms'; | ||
|
||
/** | ||
* The cms database connection. | ||
* | ||
* @var array<string, mixed> | ||
*/ | ||
public array $cms = [ | ||
'DSN' => '', | ||
'hostname' => 'localhost', | ||
'username' => '', | ||
'password' => '', | ||
'database' => '', | ||
'DBDriver' => 'MySQLi', | ||
'DBPrefix' => '', | ||
'pConnect' => false, | ||
'DBDebug' => true, | ||
'charset' => 'utf8mb4', | ||
'DBCollat' => 'utf8mb4_general_ci', | ||
'swapPre' => '', | ||
'encrypt' => false, | ||
'compress' => false, | ||
'strictOn' => false, | ||
'failover' => [], | ||
'port' => 3306 | ||
]; | ||
|
||
/** | ||
* The account database connection. | ||
* | ||
* @var array<string, mixed> | ||
*/ | ||
public array $account = [ | ||
'DSN' => '', | ||
'hostname' => 'localhost', | ||
'username' => '', | ||
'password' => '', | ||
'database' => '', | ||
'DBDriver' => 'MySQLi', | ||
'DBPrefix' => '', | ||
'pConnect' => false, | ||
'DBDebug' => true, | ||
'charset' => 'utf8mb4', | ||
'DBCollat' => 'utf8mb4_general_ci', | ||
'swapPre' => '', | ||
'encrypt' => false, | ||
'compress' => false, | ||
'strictOn' => false, | ||
'failover' => [], | ||
'port' => 3306 | ||
]; | ||
} |