Re: About returned values

From: Date: Tue, 04 Dec 2001 14:13:30 +0000
Subject: Re: About returned values
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2116@lists.php.net to get a copy of this message
Yes, this works now: {insert name=get_title assign=title} <title>{$title}</title> Ricard Pillosu wrote: > > Hi all, > > While we are creating our website, HTML/Template editor is continously > asking me for some features. One seems really interesting. The fact is > to return the result of some functions in one variable instead to the > HTML directly. I've created some "insert" functions like these ... > > {insert name=get_title ... var=title} > ... > <head><title>{$title|some_modifier}</title></head> > ... > > I've seen in the latest Changelog this line: > > - added assign attribute to insert, fetch, math, and counter functions, > documented. (Monte) > > Is this a workaround about this? what means exactly. > > Another question: > > Is there any better way to do it? > > Another issue is if it's possible something like this .... > > {"hello world"|some_modifier} > > Thank you all > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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