Re: [SMARTY] assign_integer() convenience wrapper
Andreas Ahlenstorf <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php