Re[2]: [SMARTY] parse string
| From: | Uros Gruber | Date: | Tue, 11 Feb 2003 21:50:40 +0000 |
| Subject: | Re[2]: [SMARTY] parse string | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7657@lists.php.net to get a copy of this message | ||
Hi!
is there any option (maybe in future) for something like this
$smarty->fetch("str:stringname");
or maybe somthing similar.
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