Finished book adding feature.

Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely POLONKAI
2012-08-18 13:51:44 +02:00
parent 0431d78be7
commit 9fcf91f40d
2 changed files with 16 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ use KekRozsak\FrontBundle\Form\Type\BookType;
class BookController extends Controller
{
/**
* @Route("/konyvtar", name="KekRozsakFrontBundle_bookList")
* @Route("/konyvtar", name="KekRozsakFrontBundle_bookList", options={"expose" = true})
* @Template()
*/
public function listAction()
@@ -46,7 +46,7 @@ class BookController extends Controller
$em->persist($book);
$em->flush();
return new Response();
return new Response('success');
}
}