Re: [SMARTY] problem displaying float
Max Schwanekamp <[email protected]> Fri, 17 Nov 2006 09:14:10 -0800
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
George Pitcher wrote: > I do all my calculations in PHP and let Smarty handle the display - I > thought that's what templates were all about. Exactly. Assign the value to the template object as a string, not as a float, and see what you get. Shouldn't matter, but at least then you'll get the value in a more-or-less literal form. There generally oughtn't be any need to using sprintf() in the template code. Also, do you have error_reporting set to at least E_ALL? -- Max Schwanekamp NeptuneWebworks.com 541-517-9064 -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php