Noodles24
02-16-2005, 10:03 PM
Hi,
I'm currently building a modular website, i.e. with a template etc. I was just wondering if I was going about it the right way.
At the moment I'm doing something like this:
// on module page
$content = "blah blah blah";
//do some stuff
$content .= $stuff;
include 'template.php';
Then on the template.php page I have:
<html>
<body>
<table>
<tr>
<td>
<?=$content?>
</td>
</tr>
</table>
</body>
</html>
Just a quick and dirty example, but hopefully you get what I'm trying to say
Thanks in advance
I'm currently building a modular website, i.e. with a template etc. I was just wondering if I was going about it the right way.
At the moment I'm doing something like this:
// on module page
$content = "blah blah blah";
//do some stuff
$content .= $stuff;
include 'template.php';
Then on the template.php page I have:
<html>
<body>
<table>
<tr>
<td>
<?=$content?>
</td>
</tr>
</table>
</body>
</html>
Just a quick and dirty example, but hopefully you get what I'm trying to say
Thanks in advance