public static function add()
 {
     //method returns what templates to load and some twig variables for index.html and the templates to read.
     //sends info to add method in content.model on what content to add into database
     require_once 'Content.model.php';
     $contentMdl = new ContentModel();
     $contentMdl->addContent($_POST['title'], $_POST['subject'], $_POST['year'], $_POST['estimate'], $_POST['text'], $_FILES["fileToUpload"], $_POST['video'], $_SESSION['userID']);
     $data = array('templates' => array('header.html', 'menu.html', 'searchForm.html', 'footer.html'), 'user' => $_SESSION['username'], 'userID' => $_SESSION['userID']);
     header('Location: /Fantastic-Teaching/?/User/home');
     return $data;
 }