Templates or including

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

luko
New php-forum User
New php-forum User
Posts: 1
Joined: Fri Feb 22, 2013 12:49 am

Templates or including

Postby luko » Fri Feb 22, 2013 1:05 am

Hi Guys,
I don't have much experience, basicly I'm trying to create a small small social network website with a big help of all the youtube tutorials and manuals :)
My questions concerns the code below:

Code: Select all

<!doctype html>
<html lang="en">
   <head>
      <meta charset="utf-8" />
      <meta name="description" content="" />
      <meta name="generator" content="" />
      <meta name="keywords" content="" />
      <link rel="icon" href="style/favicon.ico" type="image/x-icon">
      <link rel="stylesheet" href="style/main.css">
      <title>Int</title>
   </head>
   <body>
      <div id="general_cont">   
         <?php include_once('include/header.inc.php'); ?>
         <?php include_once('include/menu.inc.php'); ?>
         <?php include_once('include/content.inc.php'); ?>
         <?php include_once('include/footer.inc.php'); ?>
      </div>
   </body>   
</html>


I'm wondering if creating a social network you should consider using templates engine ? instead of what I have now ??
To be honest I don't really understand the whole template thing, why it's better than just simply including files ??

Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot], Strider64 and 1 guest