About returned values
| From: | Ricard Pillosu | Date: | Tue, 04 Dec 2001 08:45:01 +0000 |
| Subject: | About returned values | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2111@lists.php.net to get a copy of this message | ||
Hi all,
While we are creating our website, HTML/Template editor is continously
asking me for some features. One seems really interesting. The fact is
to return the result of some functions in one variable instead to the
HTML directly. I've created some "insert" functions like these ...
{insert name=get_title ... var=title}
...
<head><title>{$title|some_modifier}</title></head>
...
I've seen in the latest Changelog this line:
- added assign attribute to insert, fetch, math, and counter functions,
documented. (Monte)
Is this a workaround about this? what means exactly.
Another question:
Is there any better way to do it?
Another issue is if it's possible something like this ....
{"hello world"|some_modifier}
Thank you all