Open xalfeiran opened 9 months ago
To properly load the .env variables into the configuration, dotenv must be loaded before Codeigniter.php
require APPPATH . 'vendor/autoload.php'; $dotenv = Dotenv\Dotenv::create(APPPATH); $dotenv->load(); /* * -------------------------------------------------------------------- * LOAD THE BOOTSTRAP FILE * -------------------------------------------------------------------- * * And away we go... */ require_once BASEPATH.'core/CodeIgniter.php';
yes, you're right
To properly load the .env variables into the configuration, dotenv must be loaded before Codeigniter.php