Re: [SMARTY] Combining variables inside the template
| From: | Monte Ohrt | Date: | Mon, 17 Mar 2003 16:31:34 +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-8701@lists.php.net to get a copy of this message | ||
That is fixed in CVS (and the latest RC1 I do believe)
Monte
On Mon, 2003-03-17 at 10:26, Phillip Smith wrote:
> Along the lines of this thread, I have the following that works
> in 2.3.0, but doesn't work in 2.4.2 (the version I'd like to upgrade to):
>
> {include file="body/$module.tpl"}
>
>
> I've tried variations of the theme, but nothing works. The error I get
> in the page is:
>
> Warning: Smarty error: unable to read template resource: "body/m" in
> /usr/local/lib/php/Smarty/Smarty.class.php on line 999
>
> In this case, $module = "menu";
>
> What is the correct syntax for doing this? An example in the docs would
> be nice.
>
> -phillip
--
Monte Ohrt <monte@ispi.net>