1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-18 23:31:24 +02:00

added support for sending the request id in headers and retreiving the data using the open handler

This commit is contained in:
maximebf
2013-09-23 10:41:54 -04:00
parent 821bf57f2d
commit 8972b82a9a
7 changed files with 118 additions and 12 deletions

View File

@@ -2,6 +2,6 @@
include 'bootstrap.php';
$debugbar['messages']->addMessage('hello from ajax');
$debugbar->sendDataInHeaders();
$debugbar->sendDataInHeaders(true);
?>
hello from AJAX

View File

@@ -15,8 +15,9 @@ $debugbarRenderer = $debugbar->getJavascriptRenderer()
//
// create a writable profiles folder in the demo directory to uncomment the following lines
//
//$debugbar->setStorage(new DebugBar\Storage\FileStorage(__DIR__ . '/profiles'));
//$debugbarRenderer->setOpenHandlerUrl('open.php');
// $debugbar->setStorage(new DebugBar\Storage\FileStorage(__DIR__ . '/profiles'));
// $debugbar->setStorage(new DebugBar\Storage\RedisStorage(new Predis\Client()));
// $debugbarRenderer->setOpenHandlerUrl('open.php');
function render_demo_page(Closure $callback = null)
{