Re: [SMARTY] Making variables from included file available to includer

From: Date: Fri, 26 Sep 2003 09:55:50 +0000
Subject: Re: [SMARTY] Making variables from included file available to includer
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10272@lists.php.net to get a copy of this message
On Thu, Sep 25, 2003 at 09:37:07PM -0400, John Wells wrote: > Is there a way to do this? In other words, if I have a template called > abc.tpl that does: > > {include file="def.tpl"} > > How can I make the variables defined by assign in def.tpl available in the > including script (abc.tpl)? you can't with {include} . if you really need this you'll have to your own plugin that uses $smarty->fetch() or $smarty->display() to simulate an {include}. greetings messju > Thanks for any input you can provide! > > John > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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