register modifier in classes

From: Date: Sun, 27 Jul 2003 15:06:06 +0000
Subject: register modifier in classes
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9966@lists.php.net to get a copy of this message
Hello Smarty-friends ;-) , I want to register a modifier in a class , which looks like this : class forum {
    function format_text($text)
{
       //do something with $text;
       return $text;
} function output_text() {
        //register modifier
        $call_tpl = "used_tpl.html";
        $tpl->display($call_tpl);
} } does anybody know how I can register this function as a modifier ? Furthermore I would like to know the difference between section and foreach I seems to me as if it is the same. When should I use section , when foreach ? which one is faster ? greetz fLo and thnx in advance _________________________________________________________________ Messenger  -  Wer in Echtzeit kommunizieren will, lädt den MSN Messenger. Cool, kostenlos und mit 3D Emoticons: http://messenger.msn.de

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