Let "aktiviteter" also show events from database
This commit is contained in:
parent
d4794ce85f
commit
34e09667e5
@ -2,11 +2,16 @@
|
|||||||
date_default_timezone_set('Europe/Oslo');
|
date_default_timezone_set('Europe/Oslo');
|
||||||
setlocale(LC_ALL, 'no_NO');
|
setlocale(LC_ALL, 'no_NO');
|
||||||
require __DIR__ . '/../../src/_autoload.php';
|
require __DIR__ . '/../../src/_autoload.php';
|
||||||
|
require __DIR__ . '/../../sql_config.php';
|
||||||
|
$pdo = new \PDO($dbDsn, $dbUser, $dbPass);
|
||||||
|
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
|
|
||||||
use \pvv\side\Agenda;
|
use \pvv\side\Agenda;
|
||||||
$agenda = new \pvv\side\Agenda([
|
$agenda = new \pvv\side\Agenda([
|
||||||
new \pvv\side\social\NerdepitsaActivity,
|
new \pvv\side\social\NerdepitsaActivity,
|
||||||
new \pvv\side\social\AnimekveldActivity,
|
new \pvv\side\social\AnimekveldActivity,
|
||||||
new \pvv\side\social\BrettspillActivity,
|
new \pvv\side\social\BrettspillActivity,
|
||||||
|
new \pvv\side\DBActivity($pdo),
|
||||||
]);
|
]);
|
||||||
?><!DOCTYPE html>
|
?><!DOCTYPE html>
|
||||||
<html lang="no">
|
<html lang="no">
|
||||||
|
Reference in New Issue
Block a user