RE: [SMARTY] away, output filter, out, out
| From: | Eric Mueller | Date: | Fri, 14 Jun 2002 02:20:05 +0000 |
| Subject: | RE: [SMARTY] away, output filter, out, out | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4831@lists.php.net to get a copy of this message | ||
Thanks -- I have ended up just putting this code in to turn it off,
before I do the email merge.
// clear 'trimwhitespace' filter for email merge
$smarty->autoload_filters = array();
Then I pop it back in before the HTML page is output.
best
Eric
-----Original Message-----
From: Andrei Zmievski [mailto:andrei@ispi.net]
Sent: Thursday, June 13, 2002 7:27 AM
To: Eric Mueller
Cc: smarty-general@lists.php.net
Subject: Re: [SMARTY] away, output filter, out, out
On Mon, 10 Jun 2002, Eric Mueller wrote:
> Hi, I'm currently using:
>
> $smarty->load_filter('output','trimwhitespace');
>
> at the top of a common config file. In my app's architecture it'd be
> preferrable to find a way to turn it off on the fly, rather than
> introduce some kind of condition to the config file to control it
> being loaded or not.
For now you can do, unregister_outputfilter('trimwhitespace').
-Andrei http://www.gravitonic.com/
"Music expresses that which can not be said
and on which it is impossible to be silent."
-Victor Hugo