Re: [SMARTY] reading template from a string

From: Date: Wed, 02 Apr 2003 09:25:47 +0000
Subject: Re: [SMARTY] reading template from a string
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9034@lists.php.net to get a copy of this message
On Tue, Apr 01, 2003 at 03:20:25PM +0200, Toje Jedno wrote: > can someone post a single 100% working example of reading template=20 > from a string (instead of a file) > > st like $smarty -> display ($string); > > pls dont answer: "look at eval function" or "use register_resource=20 > function" > i've been messing arround with these for hours, but couldnt get it=20 > working this is merely a call of {eval var=$string} from within php: require_once $smarty->_get_plugin_filepath('function','eval'); /* get plugin */ echo smarty_function_eval(array('var'=>$string), $smarty); /* call plugin */ HTH messju

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