Re: Correct use of Smary
| From: | Tom Sommer | Date: | Thu, 20 Feb 2003 16:42:15 +0000 |
| Subject: | Re: Correct use of Smary | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8018@lists.php.net to get a copy of this message | ||
{if $Page eq "index"}
{include file="index.txt"}
{/if}
WOULD BE
{include file=$Page}
and then set $smarty->assign("Page", "index.txt");
this way you won't have all those if if if if if if
But I'm a newbie at this myself, so I am not sure :D
--
Tom Sommer
www.tsn.dk - www.dreamcoder.dk