Actually it is about collecting headers and sending them at certain time.
My problemis like following: I have index.phtml file which includes menu script, nad then - script which I want to open. To be clear, I open different pages of my project like:
index.phtml?page=NEWS
and now index.phtml includes menu and then, say, news.phtml. Now, I cannot use header() in news.phtml to redirect pages in this case, cause I always have menu file already included. I remeber that some time ago I came across some function which collects headers and sends them only at certain moment - so that headers are always sent before any other otuput. But looks like I did not save the example.
Can anybody help me?