Re: [SMARTY] filter a string instead of a file
| From: | messju mohr | Date: | Tue, 01 Apr 2003 05:59:49 +0000 |
| Subject: | Re: [SMARTY] filter a string instead of a file | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9024@lists.php.net to get a copy of this message | ||
On Mon, Mar 31, 2003 at 07:06:31PM -0800, christian calloway wrote:
> Hey,
>
> is there a way to use smarty's filter routine on a string (as opposed to a
> file), and get back the results. Something like the fetch method, but
> passing in a string instead of file? Thanks
smarties filter routines receive a string and return a string. what
about calling the filter function directly?