May this example help you ?
www/views/header.php
<?php fHTML::sendHeader() ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $this->prepare('title') ?></title>
www/mysite/index.php
<?php include_once($_SERVER['DOCUMENT_ROOT'] . '/inc/init.php');
if (fRequest::isPost()) {
$validator = new fValidation();
try {
$myName = "James BOND";
} catch (fExpectedException $e) {
fMessaging::create('error', fURL::get(), $e->getMessage());
}
}
include '/../views/index.php';
www/views/index.php
<?php
$tmpl->set('title', 'Welcome !'); // "Welcome !" will be printed in the template "header"
$tmpl->place('header');?>
<h1><?php echo $tmpl->prepare('title') ?></h1> //... and here, too (in the template index.php).
<form action="index.php">
<input id="url" value="<?php echo Meetup::makeURL('delete', $meetup) ?>" .....> // it's OK : the object prints something
<input id="email" value="<?php echo fRequest::encode('email') ?>" .....> // it's OK : the POST prints something
<input id="name" value="<?php echo $myName ?>" .....> // It' OK too : the var passes the include
......
</form>
<div class="alert">
<?php fMessaging::show('error', fURL::get()); ?> // it's OK : the error message is printed
</div>
<p>
Name: <?php echo $myName ?> // OK too !
</p>