So ever since I started created webpages, I've been using php includes for all my pages. Something like this.
Code:
<?php include("./header.php"); ?>
<?php include("./menu.php"); ?>
<?php include("./left_panel.php"); ?>
<?php include("./body.php"); ?>
<?php include("./footer.php"); ?>
Is there any better techniques in creating webpages? What's yours? I've tried CMS like drupal but it's very limited and to control some part of my website to how I want it to look is reall hard, even the simplest thing like adding unique icons to blocks, I'd have to create a new block.tpl.php file for every block.
To theme every field or page, I'd have to create a new template. So I just wonder to myself, why not handcode my html's.
Any suggestion on ways to creating webpages?
|