@@ -2,17 +2,17 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - '/' => 'index', |
|
| 5 | + '/' => 'index', |
|
| 6 | 6 | |
| 7 | 7 | '/user1-:id' => [ |
| 8 | 8 | 'use' => 'user.html', |
| 9 | 9 | 'arguments' => ['id' => '[0-9]+'] |
| 10 | 10 | ], |
| 11 | 11 | |
| 12 | - '/home1' => [ |
|
| 13 | - 'use' => 'JetFire\Routing\Block1\Namespace1Controller@index', |
|
| 12 | + '/home1' => [ |
|
| 13 | + 'use' => 'JetFire\Routing\Block1\Namespace1Controller@index', |
|
| 14 | 14 | 'template' => 'index.php' |
| 15 | - ], |
|
| 15 | + ], |
|
| 16 | 16 | |
| 17 | 17 | '/home-:id' => [ |
| 18 | 18 | 'use' => 'JetFire\Routing\Block1\Namespace1Controller@index2', |
@@ -24,10 +24,10 @@ discard block |
||
| 24 | 24 | 'name' => 'contact' |
| 25 | 25 | ], |
| 26 | 26 | |
| 27 | - '/search1-:id-:name' => [ |
|
| 28 | - 'use' => function($id,$name){ |
|
| 27 | + '/search1-:id-:name' => [ |
|
| 28 | + 'use' => function($id,$name){ |
|
| 29 | 29 | return 'Search'.$id.$name; |
| 30 | 30 | }, |
| 31 | 31 | 'arguments' => ['id' => '[0-9]+','name' => '[a-z]*'], |
| 32 | - ], |
|
| 32 | + ], |
|
| 33 | 33 | ]; |
| 34 | 34 | \ No newline at end of file |