Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fTemplating - some trouble

posted by h4mzt3r 9 years ago

Hi,

i'm using fTemplating and i have some trouble with him. So I've two files : index.php and tpl/tpl.index.php. With fTemplating class, i call in index.php the tpl.index.php file with :

$template->inject('_tpl/tpl.'.$page.'.php');

and this "works", BUT this PHP code in tpl.index.php isn't executed :

$result = $sql->query("SELECT * FROM page WHERE nom='".$page."'");
$val = $result->fetchRow();
echo $val['title'];

If i replace $template->inject by a simple include(), PHP code is executed.

What's the trouble? Thanks for your help.

Are you using fTemplating::buffer()?

posted by wbond 9 years ago