error by using an smarty variable with {include}
| From: | Sascha Willecke | Date: | Thu, 03 Apr 2003 22:09:40 +0000 |
| Subject: | error by using an smarty variable with {include} | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9042@lists.php.net to get a copy of this message | ||
Hi,
i get the folowing error by including an template with an smarty variable:
Warning: Smarty error: unable to read template resource: "modules/i" in
c:\apache\htdocs\includes\Smarty.class.php on line 999
my source:
file = index.tpl
...some code...
{if $module_template != ""}
{include file="modules/$module_template.tpl"}
{/if}
...some code...
file = index.php
$template->assign("module_template","index_index");
...some code...
$template->display("index.tpl");
whats wrong?