how to use SetContentType()?
Posted: Sat May 17, 2008 12:12 am
Hello,
just a question about SetContentType() in "class.module.inc.php".
What I doing at the moment:
I have a file "action.bar.php" for my module..
In this action I set SetContenType to something and output some data
Now call this module action withe.g. this link:
http://example.com/index.php?mact=Foo,c ... d=1&page=1
The result is:
- in "index.php" line 294 header() is using my 'content-type' which I have set in my action.
- I get the expected data in my browser (echo $html; line ~296).
But now there is some additional output (line ~309,311) which corrupt my data, because it's not valid for my 'content-type'.
Is the method SetContentType() designed for some other usage?
Regards,
Carsten
just a question about SetContentType() in "class.module.inc.php".
What I doing at the moment:
I have a file "action.bar.php" for my module..
In this action I set SetContenType to something and output some data
Now call this module action withe.g. this link:
http://example.com/index.php?mact=Foo,c ... d=1&page=1
The result is:
- in "index.php" line 294 header() is using my 'content-type' which I have set in my action.
- I get the expected data in my browser (echo $html; line ~296).
But now there is some additional output (line ~309,311) which corrupt my data, because it's not valid for my 'content-type'.
Is the method SetContentType() designed for some other usage?
Regards,
Carsten