How do you do this in php

Discussion in 'PHP' started by mumfry, Sep 28, 2011.

  1. #1
    Hey yall

    I have seen in some php scipts that the writer was able to include a page by just using something like this
    inlude lets say... latest.php into a page
    they would use something like this {latest} ... and the page or script world be inserted just by placing that text no php coding or any thing just right in the middle of regular html

    <head>
    <title>{site_title} ----> somehow sites title gets included</title>
    </head>
    <body>
    <div>
    {content} ----> somehow content.php gets included right here
    </div>
    <body>
     
    mumfry, Sep 28, 2011 IP
  2. KsNitro

    KsNitro Greenhorn

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #2
    You may have been seeing a template engine like smarty. Here is a link.
     
    KsNitro, Sep 28, 2011 IP
  3. mumfry

    mumfry Active Member

    Messages:
    118
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    oh.. is that what it is
    nice
    thank you very much for that nitro
     
    mumfry, Sep 28, 2011 IP
  4. developer.designer

    developer.designer Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can't do this without php tag in php :D :p
     
    developer.designer, Oct 8, 2011 IP