I was creating an command line interface for my app when I discovered that Smarty::compileAllTemplates() is only able to echo HTML data which is not really friendly in a command line ...
Ok I founded that you can pass an object/Class trough $smarty->registerObject().
And so you can set the allowed_methods_properties to choose which methods are allowed.
But there is no data assign ...
I was searching on the web how this can be done but I only see how to do it for normal functions (eg. {functionname}).
But I want to create a function to use inside an if (eg. {if fu ...