define('PATH_APP_CONTROLLERS', PATH_APP . 'controller' . DIRECTORY_SEPARATOR); define('PATH_APP_VIEWS', PATH_APP . 'view' . DIRECTORY_SEPARATOR); define('PATH_APP_MODELS', PATH_APP . 'model' . DIRECTORY_SEPARATOR); // set public uploads folders define('PATH_PUBLIC_UPLOADS_SOURCE', PATH_ROOT . 'public/uploads/source' . DIRECTORY_SEPARATOR); define('PATH_PUBLIC_UPLOADS_THUMBS', PATH_ROOT . 'public/uploads/thumbs' . DIRECTORY_SEPARATOR); // set vendor folder dependencies define('PATH_VENDOR', PATH_ROOT . 'vendor' . DIRECTORY_SEPARATOR); // this is the (totally optional) auto-loader for Composer-dependencies (to load tools into your project). // If you have no idea what this means: Don't worry, you don't need it, simply leave it like it is. The // default will be used instead. if (file_exists(PATH_VENDOR . 'autoload.php')) { require_once PATH_VENDOR . 'autoload.php'; } else { //Define the paths to the directories holding class files require_once PATH_VENDOR . 'thom855j/PHPAutoloader/Autoload.php'; thom855j\PHPAutoloader\Autoload::load(array(PATH_APP, PATH_VENDOR))->namespaces(); } // load application config (error reporting etc.) require_once PATH_APP . 'config.php'; // load app class for setting app up require_once PATH_APP . 'App.php'; // set env App::load()->set('env', DEBUG); App::load()->set('date_format', 'd/m/Y H:i'); use thom855j\PHPI18n\I18n; // set locale I18n::set('da_DK'); // register i18n i18n::register(PATH_LANG . 'system', 'system'); i18n::register(PATH_LANG . 'post', 'post');