[SMARTY] How to change HTTP headers

thomas Armstrong <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
Hi.

I want to change HTTP headers to insert PHP command:
header("Content-type: text/html; charset=utf-8");

I created this PHP function:
-----------
function smartyHeader()
{
	header("Content-type: text/html; charset=utf-8");	
}//getZone
------------

Registered it (on my 'config.php'):
--------
$template->register_function("phpHeader", "smartyHeader");
----------

And used it (at the very first line of my 'index.tpl'):
-------
{phpHeader}
------

But when analyzing my HTTP headers, I get:
--------
* Content-Type = text/html; charset=ISO-8859-1
--------

What am I doing wrong? Thank you very much.

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.