Re: [SMARTY] Is it possible to retrieve a value from a template

From: Date: Sat, 08 Feb 2003 11:42:26 +0000
Subject: Re: [SMARTY] Is it possible to retrieve a value from a template
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7590@lists.php.net to get a copy of this message
LPA wrote: > The problem is.. The user (clients) can modify themsemf > the templates, then i don't know which module print or not It is certainly possible to let the user set variables in the templates and refer to them later in the code - I use that method to allow templated emails in which things like Subject: can be set inside the template. However, in your case I think that writing your own smarty plugins or block handlers might be better. That way the template effectively has callbacks into your code to do what it needs where it needs. Which you choose would probably depend on how much the resulting output needs to be templated itself. Mark Rogers Quarella (More Solutions) Ltd

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