Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Quote:
|
Call the function inside your template instead, at the place you want the include to happen.
|
Exactly, or use ob_start() before the include and ob_get_contents() just after.
It will allow you to get back the HTML that would have been sent to the browser in a variable.
Calling include() is like executing the code.
If there are print or echo statements, or html in the included file, they will be sent to the browser at the moment the function is read (ie, when the page loads) when the engine parse the file to recognize the available functions.
__________________
Only a biker knows why a dog sticks his head out the window.
|