Re: Function as an argument to a function in a template file.

From: Date: Wed, 05 Sep 2001 13:05:44 +0000
Subject: Re: Function as an argument to a function in a template file.
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1436@lists.php.net to get a copy of this message
On Tue, 04 Sep 2001, David M. Patterson wrote: > Hi there. > > Does Smarty support passing the result of a function call as an argument > to another function? > > Assuming two functions: a() and b(): > In PHP print( a( b( "X" ))); is valid. > Is there any way to do the same thing in a template file? > This, of course, assumes that the functions have been registered > with Smarty. Which functions are you talking about? Modifiers support this as you can chain them. The other functions don't. -Andrei * The future is not what it used to be. *

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