Welcome Guest, Not a member yet? Register   Sign In
Best way to parse HTML
#5

[eluser]Christoffer[/eluser]
What I always do is create a layout folder containing "header.php" and "footer.php". This makes it very easy to change the layout for the entire site and for the individual views.

Then every view looks something like this:

Code:
<?php include('layout/header.php'); ?>
<h1>Heading</h1>
<p>Page elements</p>
&lt;?php include('layout/footer.php'); ?&gt;

Might be what you want to do? Smile


Messages In This Thread
Best way to parse HTML - by El Forum - 07-10-2009, 08:32 AM
Best way to parse HTML - by El Forum - 07-10-2009, 09:37 AM
Best way to parse HTML - by El Forum - 07-10-2009, 09:43 AM
Best way to parse HTML - by El Forum - 07-10-2009, 12:15 PM
Best way to parse HTML - by El Forum - 07-11-2009, 08:50 AM
Best way to parse HTML - by El Forum - 07-13-2009, 01:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB