Re: Fast format and curly brace
| From: | Runar Oudmayer | Date: | Tue, 14 Nov 2000 19:14:49 +0000 |
| Subject: | Re: Fast format and curly brace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25225@lists.php.net to get a copy of this message | ||
Well, If someone is interested, I found the solution. It was a "bug" in the
class.FastTemplate"
I changed: $template = str_replace("{$key}","$val","$template");
to
$template = str_replace("\{$key}","$val","$template");
Runar
----- Original Message -----
From: "Runar Oudmayer" <oudrun@hunden.org>
To: <php-general@lists.php.net>
Sent: Tuesday, November 14, 2000 7:36 PM
Subject: [PHP] Fast format and curly brace
Sorry to bother you guys but I've got a silly question I guess:
According to the documentation of FastTemplate using
"class.FastTemplate.php3" it says that I'm to use cylry braces on variables
defined in my templates.
When I do so I get an output i.e like this:
{column data}
In my template I use the definition {DATA} and assigning DATA => $data in
my script.
What am I doing wrong??
Runar