miniMVC/index.php

19 lines
461 B
PHP

<?php
// Change this in a live environment!
error_reporting(-1);
// Set the default paths
define('SYS_PATH', __DIR__.'/sys/');
define('MOD_PATH', __DIR__.'/modules/');
define('APP_PATH', __DIR__.'/app/');
$default_baseurl = "//".$_SERVER['HTTP_HOST']. str_replace("index.php", "", $_SERVER['REQUEST_URI']);
// Require the basic configuratio file
require(APP_PATH.'config/config.php');
// Require the most important files
require(SYS_PATH . "common.php");