index.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. *---------------------------------------------------------------
  4. * SET THE CURRENT DIRECTORY
  5. *---------------------------------------------------------------
  6. */
  7. // Path to the front controller (this file)
  8. define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
  9. // Ensure the current directory is pointing to the front controller's directory
  10. if (getcwd() . DIRECTORY_SEPARATOR !== FCPATH) {
  11. chdir(FCPATH);
  12. }
  13. /*
  14. *---------------------------------------------------------------
  15. * BOOTSTRAP THE APPLICATION
  16. *---------------------------------------------------------------
  17. * This process sets up the path constants, loads and registers
  18. * our autoloader, along with Composer's, loads our constants
  19. * and fires up an environment-specific bootstrapping.
  20. */
  21. const ENVIRONMENT = "production";
  22. const CI_DEBUG = false;
  23. // Load our paths config file
  24. // This is the line that might need to be changed, depending on your folder structure.
  25. require FCPATH . '../app/Config/Paths.php';
  26. // ^^^ Change this line if you move your application folder
  27. $paths = new Config\Paths();
  28. // LOAD THE FRAMEWORK BOOTSTRAP FILE
  29. require $paths->systemDirectory . '/Boot.php';
  30. exit(CodeIgniter\Boot::bootWeb($paths));