snapshot : default template handler

From: Date: Mon, 10 Dec 2001 18:16:48 +0000
Subject: snapshot : default template handler
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2244@lists.php.net to get a copy of this message
I added a default template handler (currently only works for local files) and updated the snapshot. usage: var $default_template_handler_func = 'my_tpl_func'; // set to your default template handling function // in your application function my_tpl_func ($resource_type, $resource_name) { if(!@touch($resource_name)) return false; return true; } The template handling function is expected to take the resource type and resource name as arguments, and return true or false for success or failure. In my example, it attempts to create the a blank template. Let me know what you think, bugs, if arguments look good, etc. Monte

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