Variable modifier parse error?
| From: | Kamal Mahyuddin | Date: | Fri, 20 Jul 2001 23:40:42 +0000 |
| Subject: | Variable modifier parse error? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1228@lists.php.net to get a copy of this message | ||
I seem to get a parse error when I use certain variable modifiers.
A snippet of the compiled template file:
<?php echo _smarty_mod_handler('smarty_mod_date_format', true,
$this->_tpl_va
rs['news'][$this->_sections['article']['properties']['index']]['timestam
p'], );
?>
Note the ',' at the end. Why does the Smarty compiler add that there?
My hoster runs PHP 4.0.6 on a Linux box, and I have Smarty 1.4.4
installed there. It works perfectly on my Win2K box with PHP 4.0.5 and
Smarty 1.4.4.
Thanks,
Kamal