Re: [SMARTY] Problem with caracter inserted in first line (RSS)
| From: | messju mohr | Date: | Mon, 19 Jan 2004 13:00:59 +0000 |
| Subject: | Re: [SMARTY] Problem with caracter inserted in first line (RSS) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10846@lists.php.net to get a copy of this message | ||
On Mon, Jan 19, 2004 at 01:02:49PM +0100, Luc Saint-Elie wrote:
> Hello,
>
> I have a rather simple backend.php page that is supposed to output a rss
> feed.
>
> The system is rather simple
>
> ....
> $smarty->assign('sitedata',$sitedata);
> header ("content-type: text/xml");
> $smarty->display($smarty->design.'/rss/backend.tpl');
>
> My backend.tpl file is a rss (091) file that calls a plugin for fetching
> news titles
>
> the canonical "<?xml version="1.0"..." is at the very beginning of the
> file.
>
> The output is screwed beacsue on the resulting file the <?xml version="1.0"
> is not at the very beginning, a caracter is inserted before.
>
> Any idea ?
you have a newline too much at the end of any of the files you include
before you call display().
> Luc
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php