mirror of
https://github.com/dg/dibi.git
synced 2025-02-22 18:02:25 +01:00
32 lines
674 B
PHP
32 lines
674 B
PHP
|
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">
|
||
|
|
||
|
<style> html { background: url(data/arrow.png) no-repeat bottom right; height: 100%; } </style>
|
||
|
|
||
|
<h1>Tracy & Variables | dibi</h1>
|
||
|
|
||
|
<p>Dibi can dump variables via Tracy, part of Nette Framework.</p>
|
||
|
|
||
|
<ul>
|
||
|
<li>Tracy Debugger: http://tracy.nette.org
|
||
|
</ul>
|
||
|
|
||
|
<?php
|
||
|
|
||
|
require __DIR__ . '/Tracy/tracy.phar';
|
||
|
require __DIR__ . '/../dibi/dibi.php';
|
||
|
|
||
|
|
||
|
Tracy\Debugger::enable();
|
||
|
|
||
|
|
||
|
dibi::connect(array(
|
||
|
'driver' => 'sqlite3',
|
||
|
'database' => 'data/sample.s3db',
|
||
|
'profiler' => array(
|
||
|
'run' => TRUE,
|
||
|
)
|
||
|
));
|
||
|
|
||
|
|
||
|
Tracy\Debugger::barDump( dibi::fetchAll('SELECT * FROM customers WHERE customer_id < ?', 38), '[customers]' );
|