custom functions
| From: | chiefmonkey | Date: | Wed, 20 Feb 2002 21:12:00 +0000 |
| Subject: | custom functions | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2786@lists.php.net to get a copy of this message | ||
I am trying to create a custom function so I added it to Smarty.addons and named it
smarty_func_getimage
I then added it to the custom functions array in Smarty.class
'getimage' => 'smarty_func_getimage'
and I am trying to call it from my template
{getimage:"path/to/images"}
but I keep getting this error
syntax error: unknown tag - 'getimage
TIA
George