Was wondering why the php code is not processing at all? Am using templates as follows:
This is the main index.php
<?php
include 'template.inc';
$tpl = new Template('./Templates/');
if (!isset($GET['link']))
{
$link = 'content.tpl';
}
else
{
$link = $GET['link'];
}
$tpl->set_file(array('loginPanel' =>'login.tpl',
'sidePanel' =>'sidePanel.tpl',
'searchPanel' =>'search.tpl',
'sloganPanel' =>'slogan.tpl',
'contentPage' => $link,
'bottomPanel'=> 'bottom.tpl',
'std'=>'body.tpl'));
$tpl->set_var('title', 'My Title');
$tpl->parse('login', 'loginPanel');
$tpl->parse('side', 'sidePanel');
$tpl->parse('search', 'searchPanel');
$tpl->parse('slogan', 'sloganPanel');
$tpl->parse('content', 'contentPage');
$tpl->parse('bottom', 'bottomPanel');
$tpl->parse('DUMMY', 'std');
$tpl->p('DUMMY');
?>
=============================
and inside the search.tpl
<BR>
<?php
Echo "Testing";
?>
<BR>
===========================
It does not appear? why is that?? is the <?php ?> block ignored?
thanks
Josh