Re: [SMARTY] Disabling Output filters
| From: | M Mohr | Date: | Fri, 07 Feb 2003 22:09:50 +0000 |
| Subject: | Re: [SMARTY] Disabling Output filters | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7578@lists.php.net to get a copy of this message | ||
On Fri, Feb 07, 2003 at 06:50:56PM +0100, Ernesto Baschny wrote:
> Hi!
>
> I have some nested templates and would like only to have the
> outputfilter to apply to the final resulting output.
>
> To do that I would like to have a way to (temporarily) switch off
> outputfilters, something like $smarty->disable_outputfilters() and
> a corresponding $smarty->enable_outputfilters(). That way I don't
> have to unregister before and register them again afterwards, a
> not so trivial task, as I have no (documented) way of knowing which
> filters are currently loaded.
>
> Or is there some way of doing that already?
it is far from perfect, but i would fetch() the template without any
output-filters enabled and apply the filter to the result of fetch
afterwards.
HTH
messju
> Thanks! :)
>
> Ernesto
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Reine Programmiersprache: Zu nichts außer für Spielzeuganwendungen verwendbar.
Ausnahme: Assembler.
Holger Schauer