{"action":"created","issue":{"url":"https://api.github.com/repos/slimphp/Slim/issues/1309","labels_url":"https://api.github.com/repos/slimphp/Slim/issues/1309/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1309/comments","events_url":"https://api.github.com/repos/slimphp/Slim/issues/1309/events","html_url":"https://github.com/slimphp/Slim/issues/1309","id":89910759,"number":1309,"title":"How to append data to view before any router?","user":{"login":"zyx-rd","id":12928963,"avatar_url":"https://avatars.githubusercontent.com/u/12928963?v=3","gravatar_id":"","url":"https://api.github.com/users/zyx-rd","html_url":"https://github.com/zyx-rd","followers_url":"https://api.github.com/users/zyx-rd/followers","following_url":"https://api.github.com/users/zyx-rd/following{/other_user}","gists_url":"https://api.github.com/users/zyx-rd/gists{/gist_id}","starred_url":"https://api.github.com/users/zyx-rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyx-rd/subscriptions","organizations_url":"https://api.github.com/users/zyx-rd/orgs","repos_url":"https://api.github.com/users/zyx-rd/repos","events_url":"https://api.github.com/users/zyx-rd/events{/privacy}","received_events_url":"https://api.github.com/users/zyx-rd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-21T13:18:50Z","updated_at":"2015-06-21T14:08:03Z","closed_at":null,"body":"In slim2.x, we can $app->view->appendData([xx]) in before middleware, how to do that in slim3 + slim/twig?\r\n\r\nthanks."},"comment":{"url":"https://api.github.com/repos/slimphp/Slim/issues/comments/113905077","html_url":"https://github.com/slimphp/Slim/issues/1309#issuecomment-113905077","issue_url":"https://api.github.com/repos/slimphp/Slim/issues/1309","id":113905077,"user":{"login":"Codexing","id":10149705,"avatar_url":"https://avatars.githubusercontent.com/u/10149705?v=3","gravatar_id":"","url":"https://api.github.com/users/Codexing","html_url":"https://github.com/Codexing","followers_url":"https://api.github.com/users/Codexing/followers","following_url":"https://api.github.com/users/Codexing/following{/other_user}","gists_url":"https://api.github.com/users/Codexing/gists{/gist_id}","starred_url":"https://api.github.com/users/Codexing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codexing/subscriptions","organizations_url":"https://api.github.com/users/Codexing/orgs","repos_url":"https://api.github.com/users/Codexing/repos","events_url":"https://api.github.com/users/Codexing/events{/privacy}","received_events_url":"https://api.github.com/users/Codexing/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T14:08:03Z","updated_at":"2015-06-21T14:08:03Z","body":"Maybe see here: http://docs-new.slimframework.com/concepts/middleware/\r\n\r\n    $response->write('BEFORE');\r\n    $response = $next($request, $response);\r\n    $response->write('AFTER');"}}