4
*---------------------------------------------------------------
6
*---------------------------------------------------------------
9
$minPhpVersion = '8.1'; // If you update this, don't forget to update `spark`.
10
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
12
'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',
17
header('HTTP/1.1 503 Service Unavailable.', true, 503);
24
*---------------------------------------------------------------
25
* SET THE CURRENT DIRECTORY
26
*---------------------------------------------------------------
29
// Path to the front controller (this file)
30
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
32
// Ensure the current directory is pointing to the front controller's directory
33
if (getcwd() . DIRECTORY_SEPARATOR !== FCPATH) {
38
*---------------------------------------------------------------
39
* BOOTSTRAP THE APPLICATION
40
*---------------------------------------------------------------
41
* This process sets up the path constants, loads and registers
42
* our autoloader, along with Composer's, loads our constants
43
* and fires up an environment-specific bootstrapping.
46
// LOAD OUR PATHS CONFIG FILE
47
// This is the line that might need to be changed, depending on your folder structure.
48
require FCPATH . '../app/Config/Paths.php';
49
// ^^^ Change this line if you move your application folder
51
$paths = new Config\Paths();
53
// LOAD THE FRAMEWORK BOOTSTRAP FILE
54
require $paths->systemDirectory . '/Boot.php';
56
exit(CodeIgniter\Boot::bootWeb($paths));