Parsing content from different resources
| From: | Dorthe Luebbert | Date: | Fri, 07 May 2004 06:10:05 +0000 |
| Subject: | Parsing content from different resources | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11368@lists.php.net to get a copy of this message | ||
Hi,
I have templates in files containing Smarty variables.
I have database content containing Smarty variables (not complete templates).
Both variable types are used in one template.
I want both variable types to be parsed by Smarty.
I do it like this:
First I assign the "normal" variables to Smarty
Then I use fetch() to parse the "normal" variables
Then I use display() with a memory resource plugin to replace the database content.
This means double work for Smarty (performance..). Is there a better way to do it?
Thanx
Dorthe