jsonNotFoundResponse(); } return $this->jsonResponse(array( 'status' => 'success', 'data' => $this->render('MuzichCoreBundle:Helpbox:'.$ressource_id.'.html.twig') ->getContent() )); } public function testErrorAction($code) { if (!in_array($code, array('404', '403', ''))) { throw new HttpException(404); } return $this->render('TwigBundle:Exception:error'.$code.'.html.twig'); } }