<?php ini_set("display_errors", 1); include_once "class.olympicPage.inc"; // every page relies on the platformPage, in this case the olympicPage $page = new olympicPage(); $page->mustBeUser("login.php"); // presentation layer. actually an html page $page->setDefaultPage("rounds.tpl"); $rounds = $page->getRoundsData(); $page->m_smarty->assign("rounds", $rounds); // show the page $page->showPlatformPage("processForm"); // also show some debug information $page->printDebug(); function processForm() { global $page; }