added card view to learning page

This commit is contained in:
Patryk Hegenberg 2023-01-08 21:08:14 +01:00
parent a19e40f205
commit 4991e28180
4 changed files with 116 additions and 69 deletions

View file

@ -1,3 +1,9 @@
<?php
$heading = "Learn";
require "views/learn.view.php";
$heading = "Learn";
session_start();
if(!isset($_SESSION["username"])){
header("Location: /");
exit;
}
require "views/learn.view.php";

View file

@ -1,9 +1,5 @@
<?php
$heading = "profile";
$username = "MatheApp";
$password = "password";
$config = require('config.php');
$db = new Database($config['database'], $username, $password);
session_start();
if(!isset($_SESSION["username"])){