public function index()
 {
     $pageNumber = isset($_GET['p']) ? $_GET['p'] : 1;
     $pageSize = 25;
     $recordCount = Movies::count();
     $movies = Movies::all("title", true, $pageNumber, $pageSize);
     $view = new MoviesView(compact('movies', 'pageNumber', 'pageSize', 'recordCount'));
     $view->render();
 }