protected function initRouter()
    {

        // Get all routes from local bootstrap
        $routes = $this->setRoutes();

        // Send all routes to Router
        foreach ($routes as $route) {
            if ($route[0] == 'any') {
                Router::any($route[1], $route[2]);
            } elseif ($route[0] == 'get') {
                Router::get($route[1], $route[2]);
            } elseif ($route[0] == 'post') {
                Router::post($route[1], $route[2]);
            } else {
                echo error::display('Route Error: bad declaration');
            }
        }

        // Set default controller and action for errors
        Router::error('\Core\Error@index');
        Router::dispatch();
    }