ref: master
config/database.php
1 2 3 4 5 6 7 8 9 10
<?php function getDatabaseConnection() { $dbFile = __DIR__ . '/../storage/database.sqlite'; $pdo = new PDO('sqlite:' . $dbFile); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); return $pdo; }