19 lines
493 B
PHP
Executable File
19 lines
493 B
PHP
Executable File
<?php
|
|
|
|
use Routes\RouteCollection as RouteCollection;
|
|
|
|
RouteCollection::add("WEB", "/module_a/submodule_b/", function(){
|
|
// Doing house keeping work
|
|
$a = 1;
|
|
$b = 2;
|
|
$c = $a + $b;
|
|
})->doIgnore();
|
|
|
|
RouteCollection::get("/module_a/submodule_b/", function(){
|
|
echo "Executin the /module_a/submodule_b/ route";
|
|
});
|
|
|
|
RouteCollection::get("/module_a/submodule_b/[d:value]", function($value){
|
|
echo "Executing the /module_a/submodule_b/ route and receaved the value $value";
|
|
});
|