Przeglądaj źródła

Create namespace

Namespaces
Ruben De Baets 2 lat temu
rodzic
commit
24f9b2ca79
2 zmienionych plików z 14 dodań i 0 usunięć
  1. 5
    0
      composer.json
  2. 9
    0
      public/index.php

+ 5
- 0
composer.json Wyświetl plik

@@ -5,5 +5,10 @@
},
"config": {
"platform-check": false
},
"autoload": {
"psr-4": {
"Blog\\": "src/"
}
}
}

+ 9
- 0
public/index.php Wyświetl plik

@@ -1,13 +1,22 @@
<?php

namespace Blog;



session_start();

use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
use SQLite3;

require __DIR__ . '/../vendor/autoload.php';

$app = AppFactory::create();



class MyDB extends SQLite3
{
function __construct()

Ładowanie…
Anuluj
Zapisz