How does PHPBB do it?
Posted: Fri Sep 19, 2003 7:17 pm
I was looking through the code and templates in phpbb and I was kind of wondering how they did this.
In a template file such as index_body.tpl for the site name they put {SITE_NAME} in the code and it prints in the browser yourdomain.com or whatever. How does phpbb do this without placing the php tags in the .tpl file? I also know that the constant SITE_NAME is defined in an external page somewhere. Do they have some type of parser that turns the template file into a php file? I've experimented a little and noticed that I can get this to work on my own pages if I add the php tags to the document. Thanks.
In a template file such as index_body.tpl for the site name they put {SITE_NAME} in the code and it prints in the browser yourdomain.com or whatever. How does phpbb do this without placing the php tags in the .tpl file? I also know that the constant SITE_NAME is defined in an external page somewhere. Do they have some type of parser that turns the template file into a php file? I've experimented a little and noticed that I can get this to work on my own pages if I add the php tags to the document. Thanks.