Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 506

Warning: Incorrect key file for table './miphpf_miphpfcom/watchdog.MYI'; try to repair it query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.', 2, '', 'http://www.miphpf.com/manual/page.html', '', '3.133.156.193', 1734783474) in /home/miphpf/domains/miphpf.com/public_html/includes/database.mysql.inc on line 121
Page | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.
Home

Page

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.

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();
?>