Reply to Re: [SMARTY] assign_integer() convenience wrapper
Posted by Andreas Ahlenstorf on 10/15/39 11:22
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...