Location: PHPKode > scripts > SmartTemplate > smarttemplate/example.php
<?php
 
    require_once "class.smarttemplate.php";
    $page = new SmartTemplate("example.html");

	$title = 'SmartTemplate Usage Example';

    $links = array(
               array( 'TITLE' => 'PHP',     'URL' => 'http://www.php.net'    ),
               array( 'TITLE' => 'Apache',  'URL' => 'http://www.apache.org' ),
               array( 'TITLE' => 'MySQL',   'URL' => 'http://www.mysql.com'  ),
             );

    $page->assign( 'TITLE',  $title );
    $page->assign( 'links',  $links );

    $page->output();
 
?>
Return current item: SmartTemplate