Skip to content

Instantly share code, notes, and snippets.

@kindlyfire
Created January 18, 2016 15:12
Show Gist options
  • Save kindlyfire/37c20114d2b9c6547920 to your computer and use it in GitHub Desktop.
Save kindlyfire/37c20114d2b9c6547920 to your computer and use it in GitHub Desktop.
<?php
session_start();
define('LCMS_V', '0.0.1');
define('ABSPATH', __DIR__);
define('PATH_VIEWS', ABSPATH . '/lantern/views');
define('PATH_PLUGINS', ABSPATH . '/lantern/plugins');
// Autoloaders
include 'core/autoloader.php';
include 'vendor/autoload.php';
// Autoloading
Autoloader::instance('Core', __DIR__)
->register();
Autoloader::instance('Lantern', __DIR__)
->register();
// Running
$url = isset($_GET['url']) ? $_GET['url'] : '/';
$app = new Core\App;
$app->configure(parse_ini_file('config.ini'));
$app->run($url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment