added bootstar, font awsome, and the project is in a useable state, bit needs some manual setup.
This commit is contained in:
22
ProjectKiln/db.php
Normal file
22
ProjectKiln/db.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
function db(): PDO {
|
||||
static $pdo = null;
|
||||
|
||||
if ($pdo === null) {
|
||||
$pdo = new PDO(
|
||||
'mysql:host=mysql;port=3306;dbname=project_kiln_db;charset=utf8mb4',
|
||||
'user',
|
||||
'demo1234',
|
||||
[
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
return $pdo;
|
||||
}
|
||||
Reference in New Issue
Block a user