Location: PHPKode > scripts > phprouter > lie2815-phprouter-fe7e229/index.php
<?php

/* Working example file */

require_once __DIR__ . '/phprouter/phprouter.php';

function not_found()
{
	echo '<!doctype html><title>404 Not Found</title><meta charset=utf-8><h1>404 Not Found</h1>';
}

function index()
{
	echo 'Hello, World!';
}

phprouter\Router::map( '/:404', 'not_found' );
phprouter\Router::map( '/', 'index' );

phprouter\Router::run();

/* EOF */
Return current item: phprouter