Template

Discussion in 'PHP' started by Magestry, Jun 14, 2008.

  1. #1
    Hey, I am new to PHP and do not know much. How am I able to create a template so that it will be the base layout for all my HTML pages. I code using notepad and my website is all html.

    Can anybody help so that all I have to do is change them all once so that I never have to change them again if I want to change the layout.

    Many thanks.
     
    Magestry, Jun 14, 2008 IP
  2. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    use Microsoft Expression Web and u can create dynamic web templates which will automatically update all pages
     
    nandanamnidheesh, Jun 15, 2008 IP
  3. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    and i dont think this relate to php
     
    nandanamnidheesh, Jun 15, 2008 IP
  4. Magestry

    Magestry Active Member

    Messages:
    822
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #4
    I thought templates are made using PHP?...
     
    Magestry, Jun 15, 2008 IP
  5. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #5
    Layouts you can create three ways

    1. CSS (using external style sheets)
    2. Using sepearate php files and including them in main
    3. Using Smarty based template system(it seperate design from your coding in php)

    It depends on requirements you can use all the three ways in your project.
    All this require knowledge of HTML,CSS,PHP,SMARTY
    Regards

    Alex
     
    kmap, Jun 15, 2008 IP