How to setup twig template in Slim 4

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

anybody can help me?

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

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