Re: [SMARTY] parse string
| From: | M Mohr | Date: | Tue, 11 Feb 2003 22:55:54 +0000 |
| Subject: | Re: [SMARTY] parse string | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7661@lists.php.net to get a copy of this message | ||
On Tue, Feb 11, 2003 at 10:50:40PM +0100, Uros Gruber wrote:
> Hi!
>
> is there any option (maybe in future) for something like this
>
> $smarty->fetch("str:stringname");
>
> or maybe somthing similar.
have a look into plugins/function.eval.php of your Smarty distribution
have fun
messju
> Because my getArticle do some other stuff rather just get
> data from DB, so this is not my solution. I already try this.
>
> --
> tia,
> Uros
>
> Tuesday, February 11, 2003, 11:35:00 AM, you wrote:
>
> MS> On Tuesday 11 February 2003 11:07, Uro? Gruber wrote:
>
>
> MS> I mean something like this:
>
> MS> // (instead of) $article = getArticle($id);
>
> $article = $smarty->>fetch("db:article.tpl");
> $smarty->>assign('content',$article);
> $smarty->>fetch('test.tpl');
>
> MS> If you treat all your articles in the database as a template, the stuff in it
> MS> will be parsed.
>
> MS> Manfred
>
> MS> --
> MS> Smarty General Mailing List (http://smarty.php.net/)
> MS> 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
--
Qualifizierter Support: Ein Schuldiger kann benannt werden.
Martin Schmitt