Re: [SMARTY-DEV] Var Templates
| From: | Tom Sommer | Date: | Wed, 16 Apr 2003 13:33:28 +0000 |
| Subject: | Re: [SMARTY-DEV] Var Templates | ||
| References: | 1 2 3 4 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1193@lists.php.net to get a copy of this message | ||
On Wed, 16 Apr 2003 11:48:24 +0200, Katana wrote:
> In my opinion
> <a href="blah.php?id={$ID}&var1={$FOO.var1}&var...">
> is not a good idea in the template.
> <a href="{$THEURL}"> is good; and you can use the link in a
> javascript, with a button or anything else. But it should be
> formatted within the PHP code.
I could not agree more... If you ever have to change an URL you wouldn't
want to do it on every template you have...
Plus, when others are making a template for you, how would they know what
the correct URL is?, if they forget a & in the url, then your site is
b0rked
--
Tom Sommer, Denmark
www.tsn.dk - www.dreamcoder.dk