Variablemodifiers with parameters
| From: | Rainer Collet | Date: | Mon, 11 Jun 2001 08:09:39 +0000 |
| Subject: | Variablemodifiers with parameters | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-876@lists.php.net to get a copy of this message | ||
Hi,
I've got a problem with parameters to modifiers.
{$date|date_format} works fine, but
{$date|date_format:"%a"} (doesn't matter how the parameter looks like)
results in a PHP syntax error. The corresponding line in the compiled
template looks like this:
<?php echo _smarty_mod_handler('smarty_mod_date_format', true,
$this->_tpl_vars['date'], ); ?>
The last parameter is missing as you see. I have tried Smarty-1.4.0,
Smarty-1.4.1 and Smarty-1.4.2 (all of them without any modifications to the
code)
Has anybody got a solution?
Thanks,
Rainer