Closed kevindecapite closed 4 years ago
getVars()
isn't defined as the error says. If you're trying to access the View instance, you must use the global _view
.
So is that _view.getVars()
? It's not clear from the readme which mentions the method.
@kevindecapite Sorry for the confusion. Those wrapper functions were removed when we migrated from wyrihaximus/twig-view to cakephp/twig-view. Since they are simple functions, we're leaving them to the user to access via _view
.
@othercorey Makes sense. Thank you for the clarification!
With this in my Twig template:
I get the following output when baking:
Versions:
Baking is working fine otherwise.