In Slim framework 4; How can I return a Formr-form in my controller as a response to a get-request? The code outputs nothing. However, if I uncomment the two lines, it outputs (as expected): Answer From Formr documentations: Formr will automatically echo form elements and messages to the screen, and this is usually fine. However, in some instances – such
Tag: slim-4
slim/twig-view – TwigExtension template functions not indetified and working
I’m following the steps described here to use twig-view within Slim https://github.com/slimphp/Twig-View/tree/3.1.0#usage but I’m getting the following error on my screen when I try to use anyof the …
Accessing route parameters in middleware in Slim 4
I would like to know how I can access route parameter in a middleware in Slim 4. Provided I define a route with placeholder and attached middleware: get(‘/{userId}’, …