cakephp / twig-view

Twig View for CakePHP
MIT License
13 stars 7 forks source link

Use Twig function to call CakePHP helpers. #26

Closed ADmad closed 4 years ago

ADmad commented 4 years ago

This avoids having to preload helpers as with current usage and also avoids having to add |raw at the end of calls to prevent escaping.

othercorey commented 4 years ago

If we aren't removing the helper context variables then should we make them globals so they can be used directly in macros?

ADmad commented 4 years ago

If we aren't removing the helper context variables then should we make them globals so they can be used directly in macros?

That's no necessary as helpers can already be accessed through view variable. Also the helper variable are kept just to prevent BC break, they will be eventually removed.