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.
How does PHPBB do it?
Moderator: General Moderators
Re: How does PHPBB do it?
Yes: see includes folder, template.phpphp_wiz_kid wrote:I was looking through the code and templates in phpbb and I was kind of wondering how they did this. Do they have some type of parser that turns the template file into a php file?