Re: Re[3]: [SMARTY] plugin & assign weirdness

From: Date: Mon, 16 Feb 2004 19:44:31 +0000
Subject: Re: Re[3]: [SMARTY] plugin & assign weirdness
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10963@lists.php.net to get a copy of this message
Le 16 févr. 04, à 19:29, david5@student-kmt.hku.nl a écrit :
From a (function) plugin, assign() does not assign vars back to the template. I found out that this is only in the case that the plugin is called from a nested template (called by an 'include' in the main template). As long as I call the plugin directly from my main template, everything works fine. I think this is weird as I *am* able to succesfully do a get_template_vars() from wherever.
David, You may want to post some bits of code because yes, a plu gin works either from the main template and from a subtemplate (called by {include file..] Luc

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