Re: [SMARTY] Combining variables inside the template
| From: | messju mohr | Date: | Fri, 14 Mar 2003 09:52:40 +0000 |
| Subject: | Re: [SMARTY] Combining variables inside the template | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8641@lists.php.net to get a copy of this message | ||
On Fri, Mar 14, 2003 at 10:37:19AM +0100, w.kutting@gmx.de wrote:
> Hi, normaly i include a template inside smarty with {include
> file="mytemplate.tpl"}or in this case with {include file=$templatename}
>
> But how do i get it to work when i got $templatename='mytemplate',
> without the ending .tpl
> i tried to to combine these with {include file=$templatename".tpl"}
> but that doesn't work. Is this possible and how?
{include file="$
templatename.tpl"}
but you need Smarty-2.5.0-RC1 for that.
have fun
messju