Re: custom functions

From: Date: Wed, 20 Feb 2002 21:23:44 +0000
Subject: Re: custom functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2789@lists.php.net to get a copy of this message
What does getimage do exactly? dump image data to the browser? chiefmonkey wrote: > > I now have it working, in as much as it doesn't display an error > message, however the browser window won't load and it keeps crashing now. > > George > > At 15:11 20/02/2002 -0600, Monte Ohrt wrote: > >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/ > > --- > 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 (#2789) next »