3.1.18. parse()

void parse ( string $filename )

Alias for fetch($filename, true); - sends the parsed content to the browser.

Example 3.9. parse()

<?php
    // Initialize OPT here
    $tpl -> assign('title', 'Page title');
    $tpl -> assign('style', 'yellow.css');
    $tpl -> assign('current_date', date('d.m.Y, H:i'));
    $tpl -> parse('overall_header.tpl');
?>