<?php use Mariana\Framework\App; # Get base path $framework_root = trim(trim(str_replace($_SERVER['DOCUMENT_ROOT'], '', __DIR__), '\\'), '/'); strlen($framework_root) > 0 ? $framework_root = '/' . $framework_root . '/' : ($framework_root = '/'); # Defines define('DS', DIRECTORY_SEPARATOR); define('ROOT', realpath(dirname(__FILE__))); define('FRAMEWORK_ROOT', $framework_root); define('VIEW_PATH', ROOT . DS . 'app' . DS . 'mvc' . DS . 'views'); define('FILE_PATH', ROOT . DS . 'app' . DS . 'files'); define('SCRIPT_PATH', ROOT . DS . 'app' . DS . 'www'); # including the required filesystem and booting the frameworkz require_once ROOT . DS . 'vendor' . DS . 'autoload.php'; require_once ROOT . DS . 'app' . DS . 'functions.php'; # bootstrap App::run();
<?php use Mariana\Framework\App; # Get base path $framework_root = trim(trim(str_replace($_SERVER['DOCUMENT_ROOT'], '', __DIR__), '\\'), '/'); strlen($framework_root) > 0 ? $framework_root = '/' . $framework_root . '/' : ($framework_root = '/'); # Defines define('DS', DIRECTORY_SEPARATOR); define('ROOT', realpath(dirname(__FILE__))); define('FRAMEWORK_ROOT', $framework_root); define('VIEW_PATH', ROOT . DS . 'app' . DS . 'mvc' . DS . 'views'); define('TEMPLATE_PATH', VIEW_PATH . DS . 'templates'); define('FILE_PATH', ROOT . DS . 'app' . DS . 'files'); define('USER_PATH', FILE_PATH . DS . 'users'); define('UPLOAD_PATH', FILE_PATH . DS . 'uploads'); define('SCRIPT_PATH', ROOT . DS . 'app' . DS . 'www'); define('DEFAULT_IMAGE', SCRIPT_PATH . DS . 'img' . DS . 'logo32.png'); define('WEBSITE', 'http://localhost:8000'); define('COACHING_URL', WEBSITE . '/coaching'); # including the required filesystem and booting the frameworkz require_once ROOT . DS . 'vendor' . DS . 'autoload.php'; require_once ROOT . DS . 'app' . DS . 'functions.php'; # bootstrap return App::run();