Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
OC 22.214.171.124_b Twig ignoring template variables added by view/*/before events #7152
The OpenCart 126.96.36.199-b Twig rendering engine ignores template variables added by view/*/before events when added via lambda functions. E.g. something like this won't work:
This basically limits the lambda function to changing the template code only, changing the $data array in there has no effect in the final Twig rendering.
This whole concept of using lambda functions is cumbersome, surely there are better approaches!