Demo: assign_var: append existing variable

Welcome to Demo: assign_var: append existing pTemplate variable:


The End
Append:

$page_content




												

include_once( 'includes/pTemplate.php' );

// PHP to process things of Index page here
$page_title = 'Demo: assign_var: append existing variable';
$page_content = 'Welcome to Demo: assign_var: append existing pTemplate variable: ';

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

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

echo $output;
exit;

Other demos

View Online Documentation