Re: [SMARTY] assign_integer() convenience wrapper

From: Date: Wed, 27 Jul 2005 17:52:19 +0000
Subject: Re: [SMARTY] assign_integer() convenience wrapper
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12876@lists.php.net to get a copy of this message
Am 27.07.2005 um 19:07 schrieb Samuel Abels:
$smarty->assign_integer('id', $_GET[id]);
If you like to have it shorter, use $smarty->assign('id', (int)$_GET['id']). There's no need for such specialized method, above all because everyone needs his/her own solution with casting, without casting but with filters, with casting and with filters... Andreas

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