Using modifiers on static data
| From: | Michal Prinke | Date: | Tue, 26 Nov 2002 18:02:42 +0000 |
| Subject: | Using modifiers on static data | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6560@lists.php.net to get a copy of this message | ||
Hello,
How to use modifiers on static (non-variable) data?
I'd like to output the current date using |date_format modifier.
I cannot use {"now"|date_format:"%Y-%m-%d"}, so I have to engage some non-
-existent variable - like this: {$dummy|default:"now"|date_format:"%Y-m-d"}.
I do not want to write an additional plugin etc...
Thanks!