File: index.php

Recommend this page to a friend!
  Classes of afshin akhgar  >  Simple PHP Router Library  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP Router Library
Route requests to different scripts based on URLs
Author: By
Last change: add parameter support
Date: 4 years ago
Size: 532 bytes


Class file image Download
 * Created by PhpStorm.
 * User: akhgar-af
 * Date: 8/9/2016
 * Time: 10:46 AM

GLOBAL $includePath;
$includePath = '/';
$router = new Router();
'test'=> 'examples/test.php',
'sub/iran' => 'examples/sub/iran.php',
'sub/subsub/module' => 'examples/sub/subsub/module/module.php',
'sub/subsub/param/:param1/:param2/:param3' => 'examples/sub/subsub/module/param.php',

For more information send a message to info at phpclasses dot org.