// Config::set('base', str_replace("\\", "/", dirname(__DIR__))); // Config::set('images', str_replace("\\", "/", __DIR__) . "/img/"); // Config::set('app', Config::get('base') . "/app/"); define('BASE_DIR', str_replace("\\", "/", dirname(__DIR__))); define('IMAGES', str_replace("\\", "/", __DIR__) . "/img/"); define('APP', BASE_DIR . "/app/"); /* |-------------------------------------------------------------------------- | Register Error & Exception handlers |-------------------------------------------------------------------------- | | Here we will register the methods that will fire whenever there is an error | or an exception has been thrown. | */ Handler::register(); /* |-------------------------------------------------------------------------- | Start Session |-------------------------------------------------------------------------- | */ Session::init(); /* |-------------------------------------------------------------------------- | Create The Application |-------------------------------------------------------------------------- | | Here we will create the application instance which will take care of routing | the incoming request to the corresponding controller and action method if valid |