I found that I couldn't edit my page easily using programs like dreamweaver after I had divided the template into header and footer files.
Using this method you can load 'template.php' into your visual designer and edit it no probs.
Note:Examples below are basic but you get the point
template.php
header.php
footer.php
Using this method you can load 'template.php' into your visual designer and edit it no probs.
Note:Examples below are basic but you get the point
template.php
Code:
<?php if($hf=='header'){ ?>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<?php } elseif($hf=='footer') {?>
</body>
</html>
<?php } ?>
header.php
Code:
<?php $hf='header'; include('template.php')?>
footer.php
Code:
<?php $hf='footer'; include('template.php')?>
Comment