public function showBoard($board) { $board = $this->boardService->getBoard($board); if (!$board instanceof Models\Board) { $this->slim->response()->isNotFound(); } $threads = $this->threadService->getThreads($board); $this->slim->render('boards/display.phtml', ['board' => $board, 'threads' => $threads]); }