1
0
mirror of https://github.com/dg/dibi.git synced 2025-10-21 17:58:02 +02:00

examples: data files moved to directory "data"

This commit is contained in:
David Grudl
2010-08-03 12:11:14 +02:00
parent 914f7d3c26
commit 6e35a783c7
19 changed files with 21 additions and 21 deletions

View File

@@ -9,13 +9,13 @@ date_default_timezone_set('Europe/Prague');
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'sample.sdb',
'database' => 'data/sample.sdb',
'profiler' => TRUE,
));
// enable log to this file
dibi::getProfiler()->setFile('log.sql');
dibi::getProfiler()->setFile('data/log.sql');
@@ -31,6 +31,6 @@ try {
}
echo "<h2>File log.sql:</h2>";
echo "<h2>File data/log.sql:</h2>";
echo '<pre>', file_get_contents('log.sql'), '</pre>';
echo '<pre>', file_get_contents('data/log.sql'), '</pre>';