A Slim application provides built-in support for HTTP caching using the resource’s last modified date. When youspecify a last modified date, Slim tells the HTTP client the d...
Rendering Rendering You can use the Slim application’s render() method to ask the current view object to render a template with agiven set of variables. The Slim application’s...
PSR-7 and Value Objects Value objects PSR-7 and Value Objects Slim supports PSR-7 interfaces forits Request and Response objects. This makes Slim flexible because it canuse a...
Middleware What is middleware? How does middleware work? How do I write middleware? Closure middleware example. Invokable class middleware example How do I add middleware? App...
Overview What is the Environment? Environment Variables Overview The Slim Framework implements a derivation of the Rack protocol . Whenyou instantiate a Slim application, it ...
Output Output The Slim application’s environment will always contain a key slim.errors with a value that is a writableresource to which log and error messages may be written. ...
Headers Headers The HTTP response returned to the HTTP client will have a header. The HTTP header is a list of keys and values thatprovide metadata about the HTTP response. You...
405 Not Allowed Handler Default Not Allowed handler Custom Not Allowed handler 405 Not Allowed Handler If your Slim Framework application has a route that matches the current...