The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Help!. slim.after.router's Avatar

13 Jul, 2015 02:25 AM

I still do not understand about slim.after.router used to do?
I think that there are some persons, by a method known slim.after.router hook

 $this->getSlim()->hook('slim.after.router', function () use (&$slim) {

            $res = $slim->response();
            $res->header('Expires', '0');
            $res->header('Last-Modified', gmdate("D, d M Y H:i:s") . " GMT");
            $res->header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
            $res->header('Pragma', 'no-cache');

We hope that everyone will help me solve this problem

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac