Hey I'm wanting to start working on a PHP script but I'm not sure on the best way of templating it. I was thinking I'd have header.tpl and footer.tpl and then do something like this ... <?php include("includes/config.php"); include("includes/functions.php"); include("templates/header.tpl"); ?> All of my page content here. <?php include("templates/footer.tpl"); ?> PHP: Although, the problem with that, is I can't modify page titles and such, unless I do something like, <?php echo $title; ?> in the header.tpl file and then set $title before header.tpl is included. Is this an efficient way of doing what I want or is there something better? All help is appreciated, thank you.
lo0ol..i know that bro.. your problem is very simple.. a good choice is to use smarty but id you want smaller one there are alot just search for php template engine
Smarty seems to big for what I want though, I mean, am I going to have problems with my idea or not, because if I don't it's probably going to be best for my fairly small script.