Re: [SMARTY] Re: Embedding vars
| From: | Luca Borrione | Date: | Thu, 06 Nov 2003 17:00:33 +0000 |
| Subject: | Re: [SMARTY] Re: Embedding vars | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10504@lists.php.net to get a copy of this message | ||
Marshall Sorenson wrote:
Luca, This syntax is a waste... $smarty->assign("myvar", $GET["foo"]); You can just use {$smarty.get.foo} That being said, I would not recommend using $_GET variables without first making them "safe" by passing each value through a function like escapeshellcmd or similar. -MarshallWom.Bat wrote:
but remember that you need to set $smarty->request_use_auto_globals = true; for thisWell guys, thank you for your suggestions! There's a great team around here... LucaDavid