PHP & TBL

Discussion in 'PHP' started by Complete, Jan 19, 2006.

  1. Complete

    Complete New Member

    Joined:
    Jan 13, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    I want to be able to split the appearance and the content in a web site.

    I know that php offers a way to do this. For example the phpbb.com does this with tables (.tbl files). Does anyone know how this is done and/or have sample code?

    I think this is the best way to handle the different language displays. In other words, when a different language is to be displayed, the entire web content will not have to change, only the text.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You have posted in the codes and project section of the site and I have moved it to the Queries and Expert comment section.

    You can do that with tables and also you can use the CSS to achieve the same.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Hi,
    First of all phpbb doesn't use tbl files, it uses tpl files, which are template files.
    Templates separte presentation & business logic, so that modifying one doesn't affect the other.
    You can achive the likes of phpbb by using a template engine, one of the popular template engine is Smarty http://smarty.php.net
    Hope this helps you.
     
  4. Complete

    Complete New Member

    Joined:
    Jan 13, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    Thanks.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice