Skip to content

Commit d5c7880

Browse files
committed
Refixed some code examples in book/controller and book/routing
1 parent 4ddc58a commit d5c7880

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

book/controller.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,8 @@ If you're extending the base controller class, do the following::
570570

571571
public function indexAction()
572572
{
573-
$product = ... retrieve the object from database;
573+
// retrieve the object from database
574+
$product = ...;
574575
if (!$product) {
575576
throw $this->createNotFoundException('The product does not exist');
576577
}

book/routing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ pattern that points to a specific PHP class and method:
8888
{
8989
public function showAction($slug)
9090
{
91-
$blog = ... use the $slug variable to query the database;
91+
// use the $slug variable to query the database
92+
$blog = ...;
9293
9394
return $this->render('AcmeBlogBundle:Blog:show.html.twig', array(
9495
'blog' => $blog,

0 commit comments

Comments
 (0)