Corrected namespace in folder structure
This commit is contained in:
parent
6b174280d5
commit
7a3d28bacc
|
@ -13,7 +13,7 @@ The third argument will match the request method. The default method is 'get'.
|
|||
## Simple example:
|
||||
```php
|
||||
use Steampixel\Route;
|
||||
include 'Route.php';
|
||||
include 'src\Steampixel\Route.php';
|
||||
|
||||
Route::add('/user/([0-9]*)/edit', function($id) {
|
||||
echo 'Edit user with id '.$id.'<br>';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
use Steampixel\Route;
|
||||
|
||||
// Include router class
|
||||
include 'src/Route.php';
|
||||
include 'src/Steampixel/Route.php';
|
||||
|
||||
function navi() {
|
||||
echo <<<EOD
|
||||
|
|
Loading…
Reference in New Issue
Block a user