PHP Classes

File: route/index.php

Recommend this page to a friend!
  Classes of Boss Ibrahim Mussa   Wepesi PHP Router with Parameters   route/index.php   Download  
File: route/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Wepesi PHP Router with Parameters
Route requests to functions or controller classes
Author: By
Last change:
Date: 1 year ago
Size: 308 bytes
 

Contents

Class file image Download
<?php
use Wepesi\App\Core\Router;
$route=new Router();
/**
 * call the route
 */
$route->get("/",function(){
    echo
"<h3>welcome to WEPESI ROUTING</h3>";
});
$route->get("/welcom", "welcomController#welcom");
$route->get("/welcom/:name",function($name){
    echo
"your name is : $name";
});
$route->run();