<?php try { if (empty($_GET['page'])) { $_GET['page'] = '1'; } // Create Class BlogPostsCollection $Collection = new BlogPostsCollection(); // Return all BlogPost in one Array $BlogPosts = $Collection->ToArray($_GET['page'], 5); $BlogPostPagination = HelperSingleton::GetInstance()->GetPagination(); // Create Author Class $AuthorsObj = new Authors(); // Return all Authors $AuthorArray = $AuthorsObj->GetAuthors(); } catch (Exception $e) { // No Exception Management at this time }