Categories > TinyButStrong general >

Header and Footer

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Lordo
Date: 2005-01-16
Time: 03:17

Header and Footer

Sorry I tried to find this by myself but I failed.

How can I assign a header.php and a footer.php only once so that they are included in all files and appear on all pages? Thanks.
By: Skrol29
Date: 2005-01-16
Time: 17:31

Re: Header and Footer

Hi Lordo,

Use parameter 'file' for a header that contains only Html.
Use parameter 'script' for a header that contains php code.
Put the needed parameter into a [onload] on [onshow] field.

Example:
  [onload;script=header.php]

Take care that your script is not executed with a global scope.
In your script, global variables are reachable only if you declare them with the insctruction global.