Re: [SMARTY] template from var
| From: | Robert Amos | Date: | Mon, 30 Aug 2004 12:50:44 +0000 |
| Subject: | Re: [SMARTY] template from var | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11737@lists.php.net to get a copy of this message | ||
Theres an ugly hack you can use from within a php file, but you're
better off avoiding it as best you can.
-bok
On Mon, 30 Aug 2004 13:59:05 +0200, Stefan <e.tuli@gmx.de> wrote:
> Paul wrote:
>
> >Hi all,
> >Is there any way to use the content of a variable as a template?
> >Thank you!
> >Paul
> >
> >
> >
> inside a template use {eval}. Inside a php file, assign it to an
> existing template. Afaik there's no other possibilty of evaluation
> template code withing php code without loading it directly from a file.
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>