<?php include "brain/data/Book.inc.php"; class DashControl { public function getPages($section) { $book = new Book("content/pages"); switch ($section) { case "pages": break; default: return $book->getContents(); break; } } }