Re: include a file assigned by a php variable?!
| From: | Norbert Röcher | Date: | Thu, 23 May 2002 13:41:39 +0000 |
| Subject: | Re: include a file assigned by a php variable?! | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4384@lists.php.net to get a copy of this message | ||
"Achim Gosse" <achim.gosse@ddd.de> schrieb:
> ...
> $tmpl->Assign("footer", "footer_1.tmpl");
> $tmpl->Assign("header", "header_1.tmpl");
> $tmpl->Display("basic.tmpl");
> --- php script ---
>
> unfortunately this does not work.
>
> this error occurs:
>
> ...unable to read template resource: "Array" in ...
>
>
> what's wrong here?
> how can i use "dynamic" sub templates?
>
I bet you're doing another assign to $footer, using an array.
So, look in your php-script or maybe in your template for another
$footer...
Greetings,
Norbert