Sunday, 11 August 2013

Is it bad to include header and footer as a template?

Is it bad to include header and footer as a template?

I was wondering if it's the right thing to include the tags like etc via
another page.
What I mean by that is:
<?php include_once("header.php")?>
The content for each individual page
<?php include_once("footer.php")?>
Header.php contains:
<!DOCTYPE html>
<head>
<title>My Website</title>
</head>
<body>
Footer.php contains:
</body>
</html>
I am using it that way because when I have a lot of pages, it's a lot
easier to just change one/two page(s). That way I spare time.
But the question is, is it bad to use a "template" style for my website?
( I saw some similair questions like this one but they didn't really
answer my question, that's why I started a new topic - Sorry if it's wrong
)

No comments:

Post a Comment