File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ the correct values of a number of field options.
523
523
And though you'll need to manually add your server-side validation, these
524
524
field type options can then be guessed from that information.
525
525
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
527
527
rules (i.e. is the field ``NotBlank `` or ``NotNull ``) or the Doctrine metadata
528
528
(i.e. is the field ``nullable ``). This is very useful, as your client-side
529
529
validation will automatically match your validation rules.
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ that controller.
203
203
204
204
The controller - ``AcmeHelloBundle:Hello:index `` is the *logical * name of
205
205
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
207
207
inside your ``AcmeHelloBundle ``::
208
208
209
209
// src/Acme/HelloBundle/Controller/HelloController.php
@@ -274,7 +274,7 @@ An optional, but common, third step in the process is to create a template.
274
274
Optional Step 3: Create the Template
275
275
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
276
276
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
278
278
a separate file and reuse different portions of the page layout. Instead
279
279
of writing the HTML inside the controller, render a template instead:
280
280
@@ -993,4 +993,4 @@ to rapidly develop applications.
993
993
.. _`third-party bundles` : http://symfony2bundles.org/
994
994
.. _`Symfony Standard Edition` : http://symfony.com/download
995
995
.. _`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 number Diff line number Diff line change @@ -221,7 +221,7 @@ workflow looks like the following from inside a controller::
221
221
222
222
public function updateAction(Request $request)
223
223
{
224
- $author = new Acme\BlogBundle\Entity\ Author();
224
+ $author = new Author();
225
225
$form = $this->createForm(new AuthorType(), $author);
226
226
227
227
if ($request->getMethod() == 'POST') {
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ added above:
199
199
200
200
.. code-block :: php
201
201
202
- $acl->insertObjectAce(new UserSecurityIdentity('johannes'), $mask);
202
+ $identity = new UserSecurityIdentity('johannes', 'Acme\UserBundle\Entity\User');
203
+ $acl->insertObjectAce($identity, $mask);
203
204
204
205
The user is now allowed to view, edit, delete, and un-delete objects.
You can’t perform that action at this time.
0 commit comments