made the code more composer friendly
This commit is contained in:
@@ -1,6 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Novaconium Framework Entry Point
|
||||
*
|
||||
* This is the main entry point for the Novaconium framework.
|
||||
* It sets up the environment, loads necessary components,
|
||||
* and runs the application.
|
||||
*
|
||||
* @package Novaconium
|
||||
* @author Nick Yeoman <dev@4lt.ca>
|
||||
*/
|
||||
|
||||
|
||||
// Enable error reporting for development environments
|
||||
// error_reporting(E_ALL);
|
||||
// ini_set('display_errors', 1);
|
||||
|
||||
// Define the base path where the website is running from
|
||||
define('BASEPATH', dirname(__DIR__, 1));
|
||||
require_once(BASEPATH . '/vendor/4lt/novaconium/src/novaconium.php');
|
||||
?>
|
||||
|
||||
// Load Composer's autoload file to handle class autoloading
|
||||
require BASEPATH . '/vendor/autoload.php';
|
||||
|
||||
// Define the framework path
|
||||
define('FRAMEWORKPATH', BASEPATH . '/vendor/4lt/novaconium');
|
||||
|
||||
// Bootstrap the Novaconium framework, which will create necessary objects like $session, $db, etc.
|
||||
require FRAMEWORKPATH . '/src/novaconium.php';
|
||||
|
||||
// Run the application
|
||||
makeitso();
|
||||
|
||||
Reference in New Issue
Block a user