Re: [SMARTY] Incrementing a smarty variable....

From: Date: Mon, 23 Jun 2003 17:06:12 +0000
Subject: Re: [SMARTY] Incrementing a smarty variable....
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9762@lists.php.net to get a copy of this message
its {$portfolio.id+1}, but only in the CVS version of smarty David ----- Original Message ----- From: "Luc Saint-Elie" <luc@regardnumerique.com> To: <smarty-general@lists.php.net> Sent: Monday, June 23, 2003 3:39 PM Subject: [SMARTY] Incrementing a smarty variable.... > Hello, > > I've a very stupid question > > I need to do > > <a href="{$smarty.server.PHP_SELF}?page=image&p={$portfolio.id +1}"> > > {$portfolio.id} comes from an array > of course > {$portfolio.id +1} doesn't work.. > > What is the correct way to increment a smarty variable ? > > Thanks > > Luc > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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