Assign param (was: Re: counter as a variable)

From: Date: Mon, 26 Nov 2001 08:43:01 +0000
Subject: Assign param (was: Re: counter as a variable)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2042@lists.php.net to get a copy of this message
Hi, Monte Ohrt wrote:
Maybe we could add a new attribute to counter: {counter assign="varname"}
A very nice idea. There are some other tags that could use an assign attribute as well. Assign could be implemented at a 'higher level'. Instead of handling it in the tag handler functions, you could have it parsed by the Smarty core. If there's an assign attribute to a tag, Smarty will assign the result of the tag to a variable, instead of outputting it. This way, any tag will have assign support. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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