This is actually directly related to phpBB, but it will also prove relevant in future projects. I am trying to add an include file to my template - my dilemma boils down to this....
changing your little include file to put all its html output into a variable
How do I change my include file to output the html into a variable?
I am able to call the variable, but I don't understand how to turn my include file into a variable. I need the contents of my .inc file to create the output, then that output needs to become the variable {NEW_RELEASES}
This variable is then placed in to the template (because we cannot add php into a template), and we also add something like
"NEW_RELEASES" => $include_output)
to the page_header.php file.
My question is how to get the output of the include file to become known as $include_output.
I sincerely apologize not being able to explain myself better. If I had a better understanding of what I am really trying to do then I might be able to explain it better.
I have spent a very long time trying to figure this out - used all my books, lots of internet searching and cannot seem to find the answer. This is making me feel very stupid...
Here is a related article that explains what I am trying to do:
http://www.phpbb.com/kb/article.php?article_id=36
Thanks for looking,
Rick