added card view to learning page
This commit is contained in:
parent
a19e40f205
commit
4991e28180
4 changed files with 116 additions and 69 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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"])){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue