PDA

View Full Version : Templates



Tabo
07-28-2008, 10:07 AM
HI.

Many CMS and forums provide a template stystem like this from mybb:


<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
{$forums}
{$boardstats}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">

Do you know a tutorial somewhere so I can copy this feature on my site, for instance:

{logo}
<whatever />
{nav}
{content}

etc...?

Twey
07-28-2008, 11:46 AM
Smarty (http://www.smarty.net/).

techietim
07-28-2008, 12:13 PM
As much as Smarty is the industry standard, if you want to go with something a bit lighter for personal use, try Bob (http://www.phpguru.org/template/).