Location: PHPKode > scripts > RFKmap > rfkmap/example2.php3
<?php

include( "./support/class.FastTemplate.php3" );
include( "class.dbcore.php3" );
include( "class.rfkmap.php3" );

$tpl = new FastTemplate( "./templates/" );
$tpl->define( array ( "main"  => "main2.tpl" ));

$cPHP = new RFKmap( $tpl, "PHPCODE" );

$tpl->assign(TITLE_A, "Evaluating function '2'");
$cPHP->view_only( $tpl, "2" );
$cPHP->view_only_eval( $tpl, "CONTENT_A" );

$tpl->assign(TITLE_B, "Evaluating function '3'");
$cPHP->view_only( $tpl, "3" );
$cPHP->view_only_eval( $tpl, "CONTENT_B" );

$tpl->parse(CONTENT, "main");
$tpl->FastPrint(CONTENT);

?>
Return current item: RFKmap