I'm editing the following template: Global Templates > globalTemplate
According to the documentation, the best way to include our external header/footer is this one:
<php>
include('../header.php');
</php>
IPB Template code....
<php>
include('../footer.php');
</php>
However, this is not working properly, because the <php> is executed before the template processing.
Therefore, I'm seeing: Header, Footer, Template code (in this order).
I tried to include the header/footer by using {parse} like this:
{parse include="../header.php"}
This is working better, but in that case I cannot pass any parameter to this script (sample: header.php?myparam=1).
Then, what is the best way:
- To include an external header/footer, allowing PHP parameters to be passed
- In my header/footer to set an IPB variable which would be available in the template

















