adding custom functions to smarty
| From: | Prince | Date: | Fri, 09 May 2003 13:25:51 +0000 |
| Subject: | adding custom functions to smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9514@lists.php.net to get a copy of this message | ||
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?
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}
and it should work?