mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 21:58:10 +02:00
examples: dibi:: replaced with $dibi->
This commit is contained in:
@@ -15,7 +15,7 @@ date_default_timezone_set('Europe/Prague');
|
||||
|
||||
|
||||
// CHANGE TO REAL PARAMETERS!
|
||||
dibi::connect([
|
||||
$dibi = new Dibi\Connection([
|
||||
'driver' => 'sqlite3',
|
||||
'database' => 'data/sample.s3db',
|
||||
'formatDate' => "'Y-m-d'",
|
||||
@@ -24,7 +24,7 @@ dibi::connect([
|
||||
|
||||
|
||||
// generate and dump SQL
|
||||
dibi::test('
|
||||
$dibi->test('
|
||||
INSERT INTO [mytable]', [
|
||||
'id' => 123,
|
||||
'date' => new DateTime('12.3.2007'),
|
||||
|
Reference in New Issue
Block a user