Re: [SMARTY] adding custom functions to smarty

From: Date: Fri, 09 May 2003 15:23:01 +0000
Subject: Re: [SMARTY] adding custom functions to smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9515@lists.php.net to get a copy of this message
On Fri, May 09, 2003 at 09:25:51AM -0400, Prince wrote: > hi... > > i want to add some custom functions to smarty plugins section.. other than creating the file in > the plugins dir and calling it function.whatever.php is there anything i need to do besides use it? nope. > i have this: > function.hit_counter.php: > > //code here > function smarty_function_hit_counter(){ > //function code here > ?> > > now all i should be able to do is this:? > {hit_counter} yes. > and it should work? yes.

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