Last active
December 24, 2015 21:39
-
-
Save npardington/6866921 to your computer and use it in GitHub Desktop.
Basic bad example. Used in a blog post about frameworks
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 | |
error_reporting (E_ALL ^ E_NOTICE); | |
session_start(); | |
require "./includes/class.pageClass.php"; | |
require "./includes/class.mailForm.php"; | |
require "./includes/inc.dbConnection.php"; | |
$page = new Page; | |
$page->Debug(); | |
$page->RequireLogin(); | |
$page->title = "Email Workers"; | |
Connect(); //should i connect inside the mailPage Class? | |
$mailForm = new MailPage; | |
$page->SetContent($mailForm->content); | |
$page->RenderPage(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment