function __construct($title, $message) { $this->addClass('ConfirmationPage'); parent::__construct(); parent::start(); ?> <h1><?php echo $title; ?> </h1> <p><?php echo $message; ?> </p> <?php parent::stop(); exit; }
<?php $page = new pSubPage(); $page->setTitle('INSERT PAGE TITLE HERE'); $page->addMeta('keywords', ''); $page->addMeta('description', ''); //facebook link information $page->addMeta('og:image', ''); //must be full path to the image $page->addMeta('og:title', ''); $page->addMeta('og:description', ''); $page->addClass('Index'); $page->start(); $v = new View('index'); $v->output(); $page->stop();