Skip to content

Instantly share code, notes, and snippets.

@npardington
Last active December 24, 2015 21:39
Show Gist options
  • Save npardington/6866921 to your computer and use it in GitHub Desktop.
Save npardington/6866921 to your computer and use it in GitHub Desktop.
Basic bad example. Used in a blog post about frameworks
<?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