"Stijn Goris" <me*****@hotmai l.com> wrote in message news:<3f******* *************** *@news.skynet.b e>...
hi all,
I m designing my first 'real' site and want to do things proper this time.
Using dreamwaever and php I was wondering what u guys think of templates in
conjunction with php? Do you think it is the best way to apply my site
design to the entire site or are there better ways?
kind regards
Stijn
Well for me (and this is for me only, everyone is differnt)
I useualy design a web page first in Dreamweaver, dual window, I code
gui and code inspector at same time. gui to move large stuff around,
and code window to fix dreamweavers idea of what I want.
After page is designed, I open it up in a text editor and pull it
apart,
I tend to make a few files from it
_begin.php - all the code that makes up the main part of the page
_menu.php - any menu area I may have (usealy the _begin file will
include thisone)
_end.php - code that wraps it up
then all my pages, like index.php look like this
<?php
$title = "My page title"
include_once("_ _begin__.php");
?>
my poage body here or table section
<?php include_once("_ _end__.php"); ?>
This way any changes I make are automaticaly site wide.
Well, just my 2 bits worth of scripting tape
Mike Bradley
http://gzen.myhq.info -- free online php tools