/** * @param Request $request * @return string * @throws Exception */ public function showAction(Request $request) { $id = $request->get('id'); $model = new BookModel(); $book = $model->getById($id); $args = array('book' => $book); return $this->render('show', $args); }