Page
miPage class is responsible for parsing the page templates, and for processing controller commands (miControllerCommand objects). miPage constructor accepts array with objects which have the getControllerCommands() method (usually one miDataManager object per page).
* Set up simple page
<?php
// Create the page object
$page = new miPage(array($dataManager));
// Set the page header template (not obligatory)
$page->setHeader('../header.html');
// Set the page footer template (not obligatory)
$page->setFooter('../footer.html');
// Show the page
// NOTE: Main page template is defined in the data manager (sub)class
$page->showPage();
?>
* Add template section info object to the page
<?php
// Create the page object
$page = new miPage(array($dataManager));
// Create the template section object
$section = new miTemplateParserSectionInfo('hasImage');
// Add the template section info object to the page
$page->addTmplSectionInfo($section);
// Show the page
$page->showPage();
?>