<?php //display error ini_set('display_errors', 'On'); ini_set('html_errors', 0); error_reporting(-1); //session session_start(); //autoload component require 'vendor/autoload.php'; //router $router = new Gears\Router(); $router->routesPath = 'app/route.php'; $router->dispatch();
<?php //////////////////////////////////////////////////////////////////////////////// // __________ __ ________ __________ // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ // | ___/ | \\____ \/ \ ____/ __ \\__ \\_ __ \ | _// _ \ \/ / // | | | Y \ |_> > \_\ \ ___/ / __ \| | \/ | ( <_> > < // |____| |___| / __/ \______ /\___ >____ /__| |______ /\____/__/\_ \ // \/|__| \/ \/ \/ \/ \/ // ----------------------------------------------------------------------------- // Designed and Developed by Brad Jones <brad @="bjc.id.au" /> // ----------------------------------------------------------------------------- //////////////////////////////////////////////////////////////////////////////// // Load the composer autoloader require '../../vendor/autoload.php'; // Install the router $router = new Gears\Router(); $router->routesPath = './routes'; $router->install();