/** 
  * Call class Pagination to show number of pages
  * Count all existing threads
  */
 public function index()
 {
     $paginate = new Pagination();
     $page = $paginate->getPage(Thread::count());
     $pagination_links = $paginate->rangeRows($page['pagenum'], $page['last_page']);
     $threads = Thread::getAll($pagination_links['max']);
     $this->set(get_defined_vars());
 }