How to setup twig template in Slim 4

#1

Hello, I can’t setup twig template in slim 4. How can setup twig template engine in slim 4?

anybody can help me?

#2

Slim 4 is still Alpha. Just some hours ago Slim Twig-View Alpha 3.0.0 (a port for Slim 4 Alpha) has been released.

Usage: https://github.com/slimphp/Twig-View/pull/105

1 Like
#3

Thank you, dude, I’m really happy :heart_eyes::heart_eyes::heart_eyes: