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

From: Date: Thu, 23 May 2002 09:20:10 +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-4377@lists.php.net to get a copy of this message
Hello, There are a custom function called fetch. {fetch file="footer_1.tmpl"} should work. On Thu, 23 May 2002 11:09:57 +0200 "Achim Gosse" <achim.gosse@ddd.de> 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 > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Atenciosamente, --------------------------------------------------------- Roberto Bertó, e-Consultor Cel: 51 91169628 email: berto@under.com.br UNDER DEVELOPMENT - http://www.UNDER.com.br Tel/FAX: 51 32270599 Rua Duque de Caxias, 1594 apto. 204 CEP 900010-281 - Porto Alegre - RS ---------------------------------------------------------

Attachment: [application/pgp-signature]
« previous php.smarty.general (#4377) next »