public function apiAction() { $text = file_get_contents(__DIR__ . '/../Resources/doc/api.markdown'); return $this->render('KnpBundlesBundle:Main:api.html.twig', array('text' => $text)); }