<?php
/* project: Layout, file: layout.php */
/*
It's common for many websites have part of design shared between all pages of the website.
This may contain header with logo, footer etc.
Such html is called layout.
In pclib, it is just one template - in fact, this site uses layout too, and output from examples is put into it.
Check this example how to put html of your forms and grids into layout template.
*/
//Include pclib framework
require 'pclib/pclib.php';
//Load website layout
$website = new PCTpl('tpl/website.tpl');
//Create form
$form = new PCForm('tpl/basicform.tpl');
//Put form html into layout template as {CONTENT} variable.
$website->values['CONTENT'] = $form->html();
print $website;
?>
Elapsed time: 17.99 ms