Demo: assign_vars, assign array of single strings

Welcome to Demo: assign_vars, assign array of single strings


The End
Change:

$page_title

$page_content




												

include_once( 'includes/pTemplate.php' );

// PHP to process things of Index page here
$page_title = 'Demo: assign_vars, assign array of single strings';
$page_content = 'Welcome to Demo: assign_vars, assign array of single strings';

$pTemplate->assign_vars(array(
	'PAGE_TITLE'	=> $page_title,
	'PAGE_CONTENT'	=> $page_content
));

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

echo $output;
exit;

Other demos

View Online Documentation