Re: [SMARTY] Combining variables inside the template
| From: | Phillip Smith | Date: | Mon, 17 Mar 2003 16:26:08 +0000 |
| Subject: | Re: [SMARTY] Combining variables inside the template | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8699@lists.php.net to get a copy of this message | ||
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