response, and which can take the incoming request, perform actions based on it, and either complete the response or pass delegation on to the next middleware in the queue. Matthew Weier O'Phinney Rob Allen ~ @akrabat
save data to database ... // Set flash message for next request $this->flash->addMessage('result', 'Post updated'); // Redirect return $response->withStatus(302) ->withHeader('Location', '/blog/list'); }); Rob Allen ~ @akrabat
$container['Photos\PhotosController'] = function ($c) { $flickr = $c['FlickrService']; $view = $c['view']; return new Photos\PhotosController($flickr, $view); }; Rob Allen ~ @akrabat