Skip to content

Commit adffc6b

Browse files
committed
Fixes to cookbook/doctrine/registration_form.rst
1 parent 0928249 commit adffc6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbook/doctrine/registration_form.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ Next, create the form for this ``Registration`` model::
216216
'checkbox',
217217
array('property_path' => 'termsAccepted')
218218
);
219+
$builder->add('Register', 'submit');
219220
}
220221

221222
public function getName()
@@ -239,7 +240,7 @@ controller for displaying the registration form::
239240
namespace Acme\AccountBundle\Controller;
240241

241242
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
242-
use Symfony\Component\HttpFoundation\Response;
243+
use Symfony\Component\HttpFoundation\Request;
243244

244245
use Acme\AccountBundle\Form\Type\RegistrationType;
245246
use Acme\AccountBundle\Form\Model\Registration;

0 commit comments

Comments
 (0)