File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ the correct values of a number of field options.
523523
And though you'll need to manually add your server-side validation, these
524524
field type options can then be guessed from that information.
525525

526-
* ``required``: The ``required`` option can be guessed based off of the validation
526+
* ``required``: The ``required`` option can be guessed based on the validation
527527
rules (i.e. is the field ``NotBlank`` or ``NotNull``) or the Doctrine metadata
528528
(i.e. is the field ``nullable``). This is very useful, as your client-side
529529
validation will automatically match your validation rules.
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ that controller.
203203

204204
The controller - ``AcmeHelloBundle:Hello:index`` is the *logical* name of
205205
the controller, and it maps to the ``indexAction`` method of a PHP class
206-
called ``Acme\HelloBundle\Controller\Hello``. Start by creating this file
206+
called ``Acme\HelloBundle\Controller\HelloController``. Start by creating this file
207207
inside your ``AcmeHelloBundle``::
208208

209209
// src/Acme/HelloBundle/Controller/HelloController.php
@@ -274,7 +274,7 @@ An optional, but common, third step in the process is to create a template.
274274
Optional Step 3: Create the Template
275275
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
276276

277-
Templates allows you to move all of the presentation (e.g. HTML code) into
277+
Templates allow you to move all of the presentation (e.g. HTML code) into
278278
a separate file and reuse different portions of the page layout. Instead
279279
of writing the HTML inside the controller, render a template instead:
280280

@@ -993,4 +993,4 @@ to rapidly develop applications.
993993
.. _`third-party bundles`: http://symfony2bundles.org/
994994
.. _`Symfony Standard Edition`: http://symfony.com/download
995995
.. _`Apache's DirectoryIndex documentation`: http://httpd.apache.org/docs/2.0/mod/mod_dir.html
996-
.. _`Nginx HttpCoreModule location documentation`: http://wiki.nginx.org/HttpCoreModule#location
996+
.. _`Nginx HttpCoreModule location documentation`: http://wiki.nginx.org/HttpCoreModule#location
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ workflow looks like the following from inside a controller::
221221

222222
public function updateAction(Request $request)
223223
{
224-
$author = new Acme\BlogBundle\Entity\Author();
224+
$author = new Author();
225225
$form = $this->createForm(new AuthorType(), $author);
226226

227227
if ($request->getMethod() == 'POST') {
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ added above:
199199

200200
.. code-block:: php
201201
202-
$acl->insertObjectAce(new UserSecurityIdentity('johannes'), $mask);
202+
$identity = new UserSecurityIdentity('johannes', 'Acme\UserBundle\Entity\User');
203+
$acl->insertObjectAce($identity, $mask);
203204
204205
The user is now allowed to view, edit, delete, and un-delete objects.

0 commit comments

Comments
 (0)