Re: snapshot : default template handler

From: Date: Tue, 11 Dec 2001 08:26:02 +0000
Subject: Re: snapshot : default template handler
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2249@lists.php.net to get a copy of this message
Hi, Monte Ohrt wrote:
function my_tpl_func ($resource_type, $resource_name) { if(!@touch($resource_name)) return false; return true; }
Sounds fine! (it does what my patch did, and a little more.)
Let me know what you think, bugs, if arguments look good, etc.
Maybe you could pass the Smarty object as third parameter. I don't know if it would be useful, but it might be good practice to pass it to all custom funtions. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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