Re: [SMARTY] include a file assigned by a php variable?!

From: Date: Thu, 23 May 2002 13:51:05 +0000
Subject: Re: [SMARTY] include a file assigned by a php variable?!
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4386@lists.php.net to get a copy of this message
Are you sure that the templates are in the templates directory for the PWD? Have you tried using the full path to the template? On Thursday 23 May 2002 05:09 am, Achim Gosse wrote: > hi, > > > i want to use the include function to include different sub templates > regarding some variables. > > example: > > --- basic template --- > {include file=$header} > some text > {include file=$footer} > --- basic template --- > > > --- php script --- > ... > $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? > > regdards and thanks in advance. > > /achim

« previous php.smarty.general (#4386) next »