Update database and helper functionality in CodeIgniter
Revised database drivers, query builder, and file/inflector helpers for improved consistency and functionality. Updated copyrights, links, and standardized function names including deprecating `is_countable` in favor of `word_is_countable`. Added support for new SQL features and optimized query handling.
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@
|
||||
include_once('../vendor/autoload.php');
|
||||
|
||||
//$dotenv = new Dotenv\Dotenv(__DIR__);
|
||||
$dotenv = new Dotenv\Dotenv('../');
|
||||
$dotenv = $dotenv = Dotenv\Dotenv::createImmutable('../');
|
||||
$dotenv->load();
|
||||
|
||||
$dotenv->required(['DB_HOST', 'DB_NAME', 'DB_USER', 'DB_PASS', 'ENVIRONMENT']);
|
||||
@@ -78,7 +78,7 @@ $dotenv->required(['DB_HOST', 'DB_NAME', 'DB_USER', 'DB_PASS', 'ENVIRONMENT']);
|
||||
* Different environments will require different levels of error reporting.
|
||||
* By default development will show errors but testing and live will hide them.
|
||||
*/
|
||||
switch (ENVIRONMENT)
|
||||
switch ($_ENV['ENVIRONMENT'])
|
||||
{
|
||||
case 'development':
|
||||
error_reporting(-1);
|
||||
|
||||
Reference in New Issue
Block a user