Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   PHP & TBL (http://www.go4expert.com/forums/php-tbl-t551/)

Complete 19Jan2006 19:13

PHP & TBL
 
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.

shabbir 19Jan2006 22:11

Re: PHP & TBL
 
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.

pradeep 20Jan2006 00:12

Re: PHP & TBL
 
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.

Complete 20Jan2006 14:07

Re: PHP & TBL
 
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.


All times are GMT +5.5. The time now is 11:00.