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

From: Date: Sat, 08 Feb 2003 12:30:57 +0000
Subject: Re: [SMARTY] Is it possible to retrieve a value from a template
References: 1 2 3 4 5 6  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7596@lists.php.net to get a copy of this message
Hi, Yes I'll try the M Mohr solution ;)) Thnx for all Laurent ----- Original Message ----- From: "Mark Rogers" <mark@quarella.co.uk> To: <smarty-general@lists.php.net> Sent: Saturday, February 08, 2003 12:42 PM Subject: Re: [SMARTY] Is it possible to retrieve a value from a template > 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 > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

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