Re: Adding modifiers and function to plug-ins

From: Date: Wed, 13 Feb 2002 21:53:31 +0000
Subject: Re: Adding modifiers and function to plug-ins
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2686@lists.php.net to get a copy of this message
On Wed, 13 Feb 2002, Ron Dyck wrote: > > What is your function called inside modifier.format_paragraph.php? > > function smarty_modifier_format_paragraph($text) > { > $text = str_replace("\r","",$text); > $text = str_replace("\n","<br>",$text); > return $text; > } Hmm, it works fine for me. What version of PHP are you using? What does your index.tpl look like? -Andrei Some people try to achieve immortality through their work, others through their children. I hope to achieve immortality by not dying. -- Woody Allen

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