Re: [SMARTY] using php functions

From: Date: Thu, 20 Feb 2003 14:59:59 +0000
Subject: Re: [SMARTY] using php functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8002@lists.php.net to get a copy of this message
you have to register them. $smarty->register_function('stripslashes','stripslashes'); Smarty does not implicitly map any php functions to template functions. Monte On Thu, 2003-02-20 at 08:38, lists@yewlands.com wrote: > Hi > > I have a form which can take its content from either a db or or normally from > $_POST. > > Can I use php's functions (stripslashes) in a template without having to > redeclare it anywhere. ie. > > {{stripslashes($form_vars.content)}} > > When I try I get unrecognized tag: stripslashes. > It would seem a bit of overkill if I have to redeclare the php functions I need > to use within the template > > Cheers > matt > > > ------------------------------------------------- -- Monte Ohrt <monte@ispi.net>

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