public static function view($url_parts)
 {
     //method returns what templates to load and some twig variables for index.html and the templates to read.
     require_once 'Content.model.php';
     require_once 'Goals.model.php';
     $contentMdl = new ContentModel();
     $goalsMdl = new GoalsModel();
     $id = $url_parts[0];
     $data = array('templates' => array('header.html', 'menu.html', 'searchForm.html', 'singleContent.html', 'footer.html'), 'goals' => $goalsMdl->viewGoals($_SESSION['userID']), 'article' => $contentMdl->viewSingleContent($id), 'userLevel' => $_SESSION['userLevel'], 'user' => $_SESSION['username'], 'userID' => $_SESSION['userID'], 'viewRating' => $contentMdl->viewRating());
     return $data;
 }