I've just started playing around with tmeplates and i'm trying to have as an include another php file (a generic navigation script). I can include the file and it run fine but it gets pushed to the top left og the outputted page rather than where it is defined in the actual template, This is the relevant bit of code, I guess.
// the news
$result= mysql_query("select news_id, news_text, news_date from news order by news_id desc limit 1");
extract(mysql_fetch_array($result));
//template stuff
$$menu = include ('nav.php');
include('template.inc');
$t = new Template("templates");
$t->set_file('input_one', 'matt.ihtml');
$t->set_var('menu', "$menu");
$t->set_var('newsdate', "$news_date");
$t->set_var('news', "$news_text");
$t->set_var('form', "$PHP_SELF");
$t->pparse('output', 'input_one');
Anyone?