Browse Source

add DB class & obj

SQLIte
Ruben De Baets 2 years ago
parent
commit
83e6bd5030
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      public/index.php

+ 10
- 0
public/index.php View File

@@ -8,6 +8,16 @@ use Slim\Factory\AppFactory;
require __DIR__ . '/../vendor/autoload.php';

$app = AppFactory::create();
class MyDB extends SQLite3
{
function __construct()
{
$this->open('../private/test.db');
}
}

$db = new MyDB();


function addNavbar($response)
{

Loading…
Cancel
Save