Assign by ref issue
| From: | Erich C. Beyrent | Date: | Fri, 18 May 2007 14:23:52 +0000 |
| Subject: | Assign by ref issue | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13709@lists.php.net to get a copy of this message | ||
I have an Image object that I have assigned by ref to my template. So far so good, until I try to pass an array as an argument to one of the object's methods:
{$Image->resize($data.Inventory.image1, 124, null, true, array('border'=>1))}
The call works fine without the array, but with it, I get:
Fatal error: Smarty error: [in offer.tpl line 27]: syntax error: unrecognized tag: $Image->resize($data.Inventory.image1, 124, null, true, array('border'=>1)) (Smarty_Compiler.class.php, line 439)
Any ideas?
-Erich-