From: Sylvie G. <sgr...@at...> - 2004-03-25 16:18:14
|
http://www.phpinsider.com/smarty-forum/ is (from my experience) a very responsive community > -----Original Message----- > From: tik...@li... > [mailto:tik...@li...]On Behalf Of Yannick > Majoros > Sent: Thursday, March 25, 2004 8:56 AM > To: tik...@li... > Subject: [Tikiwiki-devel] regex_replace > > > Hello, > > Does somebody know how to access some array element, say $items[i], from > regex_replace in a Smarty template? For the moment, I am searching in this > direction: > > {$var|regex_replace:"/\((.*)\)/":"\$GLOBALS['smarty']->get_templat > e_var('ite > ms')";"} > > Which replaces the text with 'array'... But I can't seem to be able to > access single item $items[i] :-( > > And yes, I really need to do this from the template (it's part of an > iteration). > > Melmut > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Tikiwiki-devel mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > |