mirror of
https://github.com/dg/dibi.git
synced 2025-02-21 09:23:57 +01:00
33 lines
724 B
PHP
33 lines
724 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>Nette Debugger & Variables | dibi</h1>
|
|
|
|
<p>Dibi can dump variables via Nette Debugger, part of Nette Framework.</p>
|
|
|
|
<ul>
|
|
<li>Nette Framework: http://nette.org
|
|
</ul>
|
|
|
|
<?php
|
|
|
|
require dirname(__FILE__) . '/Nette/Debugger.php';
|
|
require dirname(__FILE__) . '/../dibi/dibi.php';
|
|
|
|
|
|
// enable Nette Debugger
|
|
NDebugger::enable();
|
|
|
|
|
|
dibi::connect(array(
|
|
'driver' => 'sqlite3',
|
|
'database' => 'data/sample.s3db',
|
|
'profiler' => array(
|
|
'run' => TRUE,
|
|
)
|
|
));
|
|
|
|
|
|
NDebugger::barDump( dibi::fetchAll('SELECT * FROM customers WHERE customer_id < ?', 38), '[customers]' );
|