You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No I was trying to load a custom function to my Class, should I register a function with CI first then pass to your method? The other registered functions work great just haven't had success with anything custom / not in CI
it was only nesasary that the first parameter of addFunction was a string and the second one was something like "new Twig_Function_Function('YOUR_FUNCTION_NAME')
Thanks for this first of all. But I am getting this error when calling the method to add a custom function:
Message: Argument 2 passed to Twig::register_function() must implement interface Twig_FunctionInterface, none given,
And I was calling something like this $this->twig->register_function('test', $template);
The text was updated successfully, but these errors were encountered: