Demo: parse_file, with default parameters

Welcome to Demo: parse_file, with default parameters


The End
Change:

$page_title

$page_content




												

include_once( 'includes/pTemplate.php' );

// PHP to process things of Index page here
$page_title = 'Demo: parse_file, with default parameters';
$page_content = 'Welcome to Demo: parse_file, with default parameters';

$pTemplate->assign_var('PAGE_TITLE', $page_title);
$pTemplate->assign_var('PAGE_CONTENT', $page_content);

$pTemplate->add_file( 'templates/pparse_file_defaults.html' );
$output = $pTemplate->pparse_file( 'templates/pparse_file_defaults.html' );

echo $output;
exit;

Other demos

View Online Documentation