PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
  Classes of Mahmoud Elnezamy  >  PHP Route Library  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Route Library
Route requests to registered callback functions
Author: By
Last change: fix group nested, adding controller and resources
Date: 11 months ago
Size: 144 bytes
 

Contents

Class file image Download
<?php
require 'system/startup.php';

$route = $app->route;

$route->any('/', function() {
    echo
'Hello World';
});

$route->end();