PHP & TBL

Complete's Avatar, Join Date: Jan 2006
Go4Expert Member
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.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
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.
0
Complete's Avatar, Join Date: Jan 2006
Go4Expert Member
Quote:
Originally Posted by pradeep
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.
Thanks.