Sending a header when using a template
| From: | Luc Saint-Elie | Date: | Fri, 04 Jul 2003 10:14:44 +0000 |
| Subject: | Sending a header when using a template | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9839@lists.php.net to get a copy of this message | ||
Hello,
I've built a little syndication (RRS) system for my web site and I realize that in this case the sending server is supposed to send
header ("content-type: text/xml");
.. before the XML file itself
Its easy when using just a php file that "echo" the xml feed, but how can this be done if using a "backend.php" file that does the database stuff and assign to a backend.tpl ?
Luc