Smarty - Math

From: Date: Sat, 25 Oct 2003 19:26:57 +0000
Subject: Smarty - Math
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10423@lists.php.net to get a copy of this message
I need to be able to add two numbers togher in a template but it doesn't seem to be working. Here is the error I get: Fatal error: Smarty: [in edit_layout.html line 9]: syntax error: unrecognized tag: $foo*1 (Smarty_Compiler.class.php, line 382) in /usr/local/lib/php/Smarty_Compiler.class.php on line 1824 it would be the same error if I tried to add one except where it says $foo*1 it would say $foo+1. Here is the document that makes me think what I'm doing should work: http://smarty.php.net/manual/en/language.math.php Here is what I typed in looks like in the template: {$foo*1} Thanks for your help! jason

« previous php.smarty.general (#10423) next »