First Commit
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Routes\RouteCollection as RouteCollection;
|
||||
|
||||
RouteCollection::add("WEB", "/module_b/submodule_a/", function(){
|
||||
// Doing house keeping work
|
||||
$a = 1;
|
||||
$b = 2;
|
||||
$c = $a + $b;
|
||||
})->doIgnore();
|
||||
|
||||
RouteCollection::get("/module_b/submodule_a/", function(){
|
||||
echo "Executin the /module_b/submodule_a/ route";
|
||||
});
|
||||
|
||||
RouteCollection::get("/module_b/submodule_a/[d:value]", function($value){
|
||||
echo "Executing the /module_b/submodule_a/ route and receaved the value $value";
|
||||
});
|
||||
Reference in New Issue
Block a user