template.ini

template.ini is a template definition file that maps between "logical names" of templates and the physical filenames that actually hold the template content. Each directory has a template.ini file with line in the format:

<logical-template> = <physical-template>

Internally, Siteframe uses the logical-template name to refer to templates; the template.ini file translates these into the names of physical files that reside in the same directory as template.ini.

In most cases, the logical-template name is simply the name of the executing script. For example, the script login.php is used to sign on to the system; in template.ini, the corresponding entry usually looks like this:

login.php = login.tpl

Note, however, that the physical template name can be anything; the template designer could, for example, design templates so that a number of scripts use the same physical template file. This could, for example, make maintenance easier. Using the template.ini file to perform the logical-to-physical mapping gives the template designer more flexibility in his or her implementation.