Skip to content

Commit

Permalink
[#4779] Minor tweaks to a huge PR
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Mar 13, 2015
1 parent 8e93786 commit 24f773c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion book/http_cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ exposing a simple and efficient pattern::
$comments = ...;

// or render a template with the $response you've already started
return $this->render('Article/show.html.twig', array(
return $this->render('article/show.html.twig', array(
'article' => $article,
'comments' => $comments
), $response);
Expand Down
2 changes: 1 addition & 1 deletion book/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ giving you a nice API for uploading files.
:ref:`Crawler <book-testing-crawler>` section below.

The ``request`` method can also be used to simulate form submissions directly
or perform more complex requests. Some usefull examples::
or perform more complex requests. Some useful examples::

// Directly submit a form (but using the Crawler is easier!)
$client->request('POST', '/submit', array('name' => 'Fabien'));
Expand Down
8 changes: 4 additions & 4 deletions book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ will appear.
You could also pass the collection of errors into a template::

if (count($errors) > 0) {
return $this->render('Author/validation.html.twig', array(
return $this->render('author/validation.html.twig', array(
'errors' => $errors,
));
}
Expand All @@ -177,7 +177,7 @@ Inside the template, you can output the list of errors exactly as needed:

.. code-block:: html+jinja

{# app/Resources/views/Author/validation.html.twig #}
{# app/Resources/views/author/validation.html.twig #}
<h3>The author has the following errors</h3>
<ul>
{% for error in errors %}
Expand All @@ -187,7 +187,7 @@ Inside the template, you can output the list of errors exactly as needed:

.. code-block:: html+php

<!-- app/Resources/views/Author/validation.html.php -->
<!-- app/Resources/views/author/validation.html.php -->
<h3>The author has the following errors</h3>
<ul>
<?php foreach ($errors as $error): ?>
Expand Down Expand Up @@ -235,7 +235,7 @@ workflow looks like the following from inside a controller::
return $this->redirect($this->generateUrl(...));
}

return $this->render('Author/form.html.twig', array(
return $this->render('author/form.html.twig', array(
'form' => $form->createView(),
));
}
Expand Down

0 comments on commit 24f773c

Please sign in to comment.