Skip to content

Use new array syntax and make a few minor tweaks #7005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ to creating a page?
#. *Create a controller*: The method below the route - ``numberAction()`` - is called
the *controller*: this is a function where *you* build the page and ultimately
return a ``Response`` object. You'll learn more about :doc:`controllers </controller>`
in their own section, including how to return JSON responses;
in their own section, including how to return JSON responses.

The Web Debug Toolbar: Debugging Dream
--------------------------------------
Expand Down Expand Up @@ -134,7 +134,7 @@ variable so we can render that::
$number = mt_rand(0, 100);

return $this->render('lucky/number.html.twig', array(
'number' => $number
'number' => $number,
));
}
}
Expand Down Expand Up @@ -184,7 +184,7 @@ So what about the other directories in the project?

``var/``
This is where automatically-created files are stored, like cache files
(``var/cache/``) and logs (``var/logs/``).
(``var/cache/``), logs (``var/logs/``) and sessions (``var/sessions/``).

``vendor/``
Third-party (i.e. "vendor") libraries live here! These are downloaded via the `Composer`_
Expand Down