I see that phpbb using template files for layout, is there a difference in design/performance or are they two different ways of doing the same thing?
thanks
Moderator: General Moderators
Code: Select all
<html>
stuff
<?=$content;?>
</html>Code: Select all
<?
$content = <<<HTML
here is some html..
HTML;
include('layout.php');
?>Code: Select all
<?
function siteheader(){
echo 'this is a header';
}
function sitefooter(){
echo 'this is a footer';
}
?>Code: Select all
<?
include('base.php');
siteheader();
echo 'this is something inbetween';
sitefooter();
?>http://www.php.net/setcookieTakuma wrote:9902468 - I don't use those system but I made a template class like phpBB by the way how can you remember that username?.