Templates or including

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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">
      <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">
      <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'); ?>

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: No registered users and 13 guests