All pastes #426555 Raw Edit

zoredache

public php v1 · immutable
·published 2007-04-06 06:20 UTC
rendered paste body
<?phprequire_once 'HTML/Template/Flexy.php';require_once 'HTML/Template/Flexy/Element.php';$tpldir = 'templates';$VarPath='/somewhere/';$tpl = new HTML_Template_Flexy(array('templateDir' =>                                      $VarPath.'Templates',                                      'compileDir' =>                                      $VarPath.'Compiled',));$tpl->compile('basic.tpl');$view = new stdClass;$view->Title = 'Test Page';// PageContent would come from a DB or XML file.$view->PageContent = 'This is a test page';  $tpl->outputObject($view);?>