1
0
mirror of https://github.com/dg/dibi.git synced 2025-07-10 00:56:24 +02:00
Files
php-dibi/examples/nette-debug.php
2010-08-03 13:41:05 +02:00

34 lines
521 B
PHP

<!DOCTYPE html>
<h1>Nette\Debug & dibi example</h1>
<p>Dibi can display and log exceptions via Nette\Debug, part of Nette Framework.</p>
<ul>
<li>Nette Framework: http://nette.org
</ul>
<?php
require_once 'Nette/Debug.php';
require_once '../dibi/dibi.php';
// enable Nette\Debug
Debug::enable();
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'data/sample.sdb',
'profiler' => array(
'run' => TRUE,
)
));
// throws error
dibi::query('SELECT FROM [customers] WHERE [customer_id] < %i', 38);