diff --git a/book/forms.rst b/book/forms.rst index ce7510abbe6..6d29811b73f 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -13,7 +13,7 @@ learning the most important features of the form library along the way. The Symfony Form component is a standalone library that can be used outside of Symfony2 projects. For more information, see the `Symfony2 Form component`_ - on Github. + on GitHub. .. index:: single: Forms; Create a simple form @@ -39,6 +39,7 @@ going to need to build a form. But before you begin, first focus on the generic { return $this->task; } + public function setTask($task) { $this->task = $task; @@ -48,7 +49,7 @@ going to need to build a form. But before you begin, first focus on the generic { return $this->dueDate; } - + public function setDueDate(\DateTime $dueDate = null) { $this->dueDate = $dueDate; @@ -172,7 +173,7 @@ helper functions: That's it! By printing ``form(form)``, each field in the form is rendered, along with a label and error message (if there is one). The ``form`` function also -surrounds everything in the necessary HTML ``form`` tag. As easy as this is, +surrounds everything in the necessary HTML ``