1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 21:38:14 +01:00
php-debugbar/demo/index.php

49 lines
1.4 KiB
PHP
Raw Normal View History

2013-08-12 18:49:21 +10:00
<?php
include 'bootstrap.php';
$debugbar['messages']->addMessage('hello');
$debugbar['time']->startMeasure('op1', 'sleep 500');
usleep(300);
$debugbar['time']->startMeasure('op2', 'sleep 400');
usleep(200);
$debugbar['time']->stopMeasure('op1');
usleep(200);
$debugbar['time']->stopMeasure('op2');
$debugbar['messages']->addMessage('world', 'warning');
$debugbar['messages']->addMessage(array('toto' => array('titi', 'tata')));
$debugbar['messages']->addMessage('oups', 'error');
$debugbar['time']->startMeasure('render');
render_demo_page(function() {
?>
<h2>AJAX</h2>
<ul>
<li><a href="ajax.php" class="ajax">load ajax content</a></li>
<li><a href="ajax_exception.php" class="ajax">load ajax content with exception</a></li>
</ul>
2013-09-15 12:56:08 -04:00
<h2>Stack</h2>
<ul>
<li><a href="stack.php">perform a redirect</a></li>
</ul>
2013-08-12 18:49:21 +10:00
<h2>PDO</h2>
<ul>
<li><a href="pdo.php">PDO demo</a></li>
</ul>
2013-08-12 19:01:01 +10:00
<h2>Bridges</h2>
<p>(you need to install needed dependencies first, run <code>composer.phar install</code> in each demo folders)</p>
<ul>
2013-08-12 19:33:40 +10:00
<li><a href="bridge/cachecache">CacheCache</a></li>
2013-08-13 11:36:08 +10:00
<li><a href="bridge/doctrine">Doctrine</a></li>
2013-08-12 19:19:47 +10:00
<li><a href="bridge/monolog">Monolog</a></li>
2013-08-12 19:15:54 +10:00
<li><a href="bridge/propel">Propel</a></li>
2013-08-12 19:45:31 +10:00
<li><a href="bridge/slim">Slim</a></li>
2013-08-12 19:01:01 +10:00
<li><a href="bridge/swiftmailer">Swift mailer</a></li>
<li><a href="bridge/twig">Twig</a></li>
</ul>
2013-08-12 18:49:21 +10:00
<?php
2014-01-16 21:41:41 +00:00
});