From b2f23c6c7d6ceb91e2d55e50708396606fb66c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Thu, 24 Nov 2016 13:50:45 +0100 Subject: [PATCH] Updated documentation --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f6043b5..58f4919 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ require_once 'routes.php'; * Can be overwritten by using the namespace config option on your routes. */ -SimpleRouter::setDefaultNamespace('Demo\Controllers'); +SimpleRouter::setDefaultNamespace('\Demo\Controllers'); // Start the routing SimpleRouter::start(); @@ -150,7 +150,7 @@ SimpleRouter::get('/page/404', 'ControllerPage@notFound', ['as' => 'page.notfoun #### ExceptionHandler example -This is a basic example of an ExceptionHandler implementation: +This is a basic example of an ExceptionHandler implementation (please see "[Easily overwrite route about to be loaded](#easily-overwrite-route-about-to-be-loaded)" for examples on how to change callback). ```php namespace Demo\Handlers; @@ -259,7 +259,7 @@ class Router extends SimpleRouter { require_once 'routes.php'; // change default namespace for all routes - parent::setDefaultNamespace('\Demo'); + parent::setDefaultNamespace('\Demo\Controllers'); // Do initial stuff parent::start();