1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,285
    Likes Received:
    364
    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,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    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