Re: [SMARTY] template from var
| From: | Paul | Date: | Mon, 30 Aug 2004 12:55:28 +0000 |
| Subject: | Re: [SMARTY] template from var | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11738@lists.php.net to get a copy of this message | ||
Still, I would like to know it ;)
Cheers,
Paul
On Mon, 30 Aug 2004 22:50:44 +1000, Robert Amos <shiznatz@gmail.com> wrote:
> 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
> >
> >
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>