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:
|
## Simple example:
|
||||||
```php
|
```php
|
||||||
use Steampixel\Route;
|
use Steampixel\Route;
|
||||||
include 'Route.php';
|
include 'src\Steampixel\Route.php';
|
||||||
|
|
||||||
Route::add('/user/([0-9]*)/edit', function($id) {
|
Route::add('/user/([0-9]*)/edit', function($id) {
|
||||||
echo 'Edit user with id '.$id.'<br>';
|
echo 'Edit user with id '.$id.'<br>';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
use Steampixel\Route;
|
use Steampixel\Route;
|
||||||
|
|
||||||
// Include router class
|
// Include router class
|
||||||
include 'src/Route.php';
|
include 'src/Steampixel/Route.php';
|
||||||
|
|
||||||
function navi() {
|
function navi() {
|
||||||
echo <<<EOD
|
echo <<<EOD
|
||||||
|
|
Loading…
Reference in New Issue
Block a user