Re: [SMARTY] cache .xml files

From: Date: Fri, 29 Jun 2007 10:41:24 +0000
Subject: Re: [SMARTY] cache .xml files
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13725@lists.php.net to get a copy of this message
pobox@verysmall.org schrieb: > messju mohr wrote: >> you must not expose the cache files directly to the client but have to >> deliver them via $smarty->fetch() or $smarty->display(). set the >> correct content-type with php's header() function to please your >> clients. > > Right... I got confused by the .html extension of the cached files. How > does it work right now - who sends the headers when cached file is sent > to the client and why if I send header() before $smarty->display() - > they will not get overwritten by the headers sent when > $smarty->display() is called. > > Sorry if the question is stupid but I can't figure it out... Smarty does not send any headers. Headers are sent by your Web-Server, PHP or by yourself using header() -- Sebastian Mendel www.sebastianmendel.de

« previous php.smarty.general (#13725) next »