Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 4 matches
Smarty Forum Index
Author Message
  Topic: smarty_function_eval() replacement or workaround?
mpgjunky

Replies: 7
Views: 18341

PostForum: Plugins   Posted: Mon Jul 25, 2011 2:57 pm   Subject: smarty_function_eval() replacement or workaround?
FYI, you can eval a string from PHP like this:

$output = $smarty->fetch("eval:$string");

Maybe that will be useful for you.

Thanks mohrt, that seems to be just what w ...
  Topic: smarty_function_eval() replacement or workaround?
mpgjunky

Replies: 7
Views: 18341

PostForum: Plugins   Posted: Mon Jul 25, 2011 2:17 pm   Subject: smarty_function_eval() replacement or workaround?
PS: This is the code that references the old eval plugin:


function _tplFetch($tplSource)
{
if (!function_exists('smarty_function_eval')) {
...
  Topic: smarty_function_eval() replacement or workaround?
mpgjunky

Replies: 7
Views: 18341

PostForum: Plugins   Posted: Mon Jul 25, 2011 2:15 pm   Subject: smarty_function_eval() replacement or workaround?
Thanks for the quick reply.

I am actually trying to fix the ArraySmarty renderer for Pear HTML_QuickForm. The renderer was written ages ago, pre version 3 and has not been updated since.

The tro ...
  Topic: smarty_function_eval() replacement or workaround?
mpgjunky

Replies: 7
Views: 18341

PostForum: Plugins   Posted: Mon Jul 25, 2011 12:56 pm   Subject: smarty_function_eval() replacement or workaround?
Hi,

I am using Smarty v3.0.6 and noticed that the plugin function.eval.php is missing. Does anyone know of a replacement method or workaround?

Cheers,
Michael.
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP