Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Templates or including

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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/'); ?>
         <?php include_once('include/'); ?>
         <?php include_once('include/'); ?>
         <?php include_once('include/'); ?>

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 ??
New php-forum User
New php-forum User
Posts: 1
Joined: Fri Feb 22, 2013 12:49 am

Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.