Location: PHPKode > scripts > Dispatcher > dispatcher/index.php
<?php
/**
 * @li gnu/agpl v3 or later
 * @code utf8
 * @version 0.1
 * @author cojack from Aichra.pl
 * @date 22.09.09
 *
 **/

require_once ('Dispatcher.php');

$disObj = new Dispatcher($_GET['event']);
$disObj->handleEvent();

//tpl etc...
// ...
// ...

// using some templates (Smarty here)
//$tpl->assign('content',$disObj->getResponse());

// or plain text
echo $disObj->getResponse();

// set the ulr to index.php?event=show

// else code
// ...
Return current item: Dispatcher