Simon Wisselink

Results 212 comments of Simon Wisselink

Smarty does not support named arguments (yet). Might be a useful improvement.

I guess you could offer to help the authors of the editors/plugins you mentioned to implemented the required changes?

How about `libs/sysplugins/smarty_internal_templatecompilerbase.php:662`: ```php if ( !$this->smarty->loadPlugin('smarty_modifiercompiler_' . $name) && !isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name]) && !in_array($name, ['time', 'join', 'is_array', 'in_array', 'count']) ) { trigger_error('Using unregistered function "' . $name . '" in a...

Sorry, my bad. Copied the wrong reference. I meant to reference this: `libs/sysplugins/smarty_internal_compile_private_modifier.php:112`: ```php if (!is_object($compiler->smarty->security_policy) || $compiler->smarty->security_policy->isTrustedPhpModifier($modifier, $compiler) ) { if (!in_array($modifier, ['time', 'join', 'is_array', 'in_array'])) { trigger_error('Using unregistered...

Sorry, but I don't like this approach. The registerplugin methods are the "old" way to register plugins. I'm in favor of creating new Extensions. Wouldn't it be easier to switch...

> I understand you consider "registerPlugin" method as old way to register Plugins. Does this mean that it could be deprecated in a near future ? Yes, it might.

> I thought about it, but it's too verbose. The main problem is with `cache_id` - if set to NULL in PHP, Smarty stops caching, if set to NULL in...

Use `{capture}{/capture}`?

Probably won't work with arrays either.

Show us the source of this index.php file? I don't know the "lunch demo" project that you are referring to.