This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
class Controller { } | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once('./controller/Dashboard.php'); ?> | |
<?php | |
$Dashboard = new Dashboard(); | |
$Response = []; | |
$active = $Dashboard->active; | |
$News = $Dashboard->getNews(); | |
?> | |
<?php require('./nav.php'); ?> | |
<main role="main" class="container"> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once('./controller/Login.php'); ?> | |
<?php | |
$Login = new Login(); | |
$Response = []; | |
$active = $Login->active; | |
if (isset($_POST) && count($_POST) > 0) $Response = $Login->login($_POST); | |
?> | |
<?php require('./nav.php'); ?> | |
<main role="main" class="container"> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once('./controller/Logout.php'); ?> | |
<?php new Logout(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once('./controller/Register.php'); ?> | |
<?php | |
$Register = new Register(); | |
$Response = []; | |
$active = $Register->active; | |
if (isset($_POST) && count($_POST) > 0) $Response = $Register->register($_POST); | |
?> | |
<?php require('./nav.php'); ?> | |
<main role="main" class="container"> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(__dir__ . '/Db.php'); | |
class DashboardModel extends Db { | |
/** | |
* @param null | |
* @return array | |
* @desc Returns an array of news.... | |
**/ | |
public function fetchNews() :array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Db { | |
protected $dbName = 'learning_dollars_db'; /** Database Name */ | |
protected $dbHost = 'localhost'; /** Database Host */ | |
protected $dbUser = 'root'; /** Database Root */ | |
protected $dbPass = ''; /** Databse Password */ | |
protected $dbHandler, $dbStmt; | |
/** | |
* @param null|void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Db { | |
protected $dbName = 'learning_dollars_db'; /** Database Name */ | |
protected $dbHost = 'localhost'; /** Database Host */ | |
protected $dbUser = 'root'; /** Database Root */ | |
protected $dbPass = ''; /** Databse Password */ | |
protected $dbHandler, $dbStmt; | |
/** | |
* @param null|void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(__dir__ . '/Db.php'); | |
class LoginModel extends Db { | |
/** | |
* @param string | |
* @return array | |
* @desc Returns a user record based on the method parameter.... | |
**/ | |
public function fetchEmail(string $email) :array |
OlderNewer