klein / klein.php

A fast & flexible router
MIT License
2.66k stars 290 forks source link

Capturing the entire response #359

Open Brakkar opened 7 years ago

Brakkar commented 7 years ago

Hello, I try to capture the entire response content right before it is sent back to the browser, fully processed. (in order to cache it).

I use this kind of syntax :

$service->render('myview.phtml', array('title' => 'My View'));

which will send fully processed content to the browser. How can I capture the final output produced by this line ?