Smarty 2.0 Prefilter

From: Date: Thu, 28 Feb 2002 23:56:40 +0000
Subject: Smarty 2.0 Prefilter
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2899@lists.php.net to get a copy of this message
Since there is no Smarty.addons.php file where do you place a template prefilter. <?php /* * Smarty plugin * ------------------------------------------------------------- * Type: prefilter * Name: capture * Purpose: capture data between the the <!--capture--> tags * ------------------------------------------------------------- */ function capture($tpl_source) { eregi('<!--capture-->(.*)<!--/capture-->',$tpl_source,$match); return $match[1]; } ?>

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