compiler.inc (?) [message #16900] |
Fri, 27 February 2004 19:17 |
oblomov
Messages: 12 Registered: February 2004
Karma: 0
|
Junior Member |
|
|
Hi,
I'm trying to use fudforum libs from outside the fudforum app and trying to understand how the API/system works.
If I have understood well there are many "includes" that are parsed before being used and where some "placeholder" (like {SQL_TABLE_PREFIX} ) are replaced with values like in a template system (and then the replaced file cached)
Actually I don't understand where this happens as it does not in fud_use, nor in any of the .t includes (usually the files to be parsed)
I'm using imsg.inc.t and imsg.edt.inc (with a simple require, not with fud_use) and the placeholder {SQL_TABLE_PREFIX}, I found that is replaced in compile_file function of commpiler.inc but couldn't find a single file that actually use this function...
Can someone please enlighten me on the overall functioning of this (for me) strange technique?
Thanks
|
|
|
Re: compiler.inc (?) [message #16902 is a reply to message #16900] |
Fri, 27 February 2004 20:07 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
compiler.inc is called by scripts inside the adm/ directory as well as the installer & upgrade script.
The file itself takes all .tmpl, .t and translation files and builds the appropriate .php & .inc files.
FUDforum Core Developer
|
|
|