Re: custom functions

From: Date: Wed, 20 Feb 2002 21:11:57 +0000
Subject: Re: custom functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2787@lists.php.net to get a copy of this message
wrong syntax for one: {getimage name="val" name2="val2"} chiefmonkey wrote: > > 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 > > > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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