Use of any function in insert

From: Date: Thu, 20 Mar 2003 16:15:08 +0000
Subject: Use of any function in insert
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8779@lists.php.net to get a copy of this message
Hi, I was thinking, why can't we use any function in an {insert} tag? I made a custom function that I store in the plugin directory: The name of the function is smarty_function_something() so that it can be used in templates. But why can't the {insert} tag use this function? Why do we have to name all insert functions as insert_something() ? Because here, I have to write two different functions that are in fact only one function...

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