Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitadffc6b

Browse files
committed
Fixes to cookbook/doctrine/registration_form.rst
1 parent0928249 commitadffc6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎cookbook/doctrine/registration_form.rst

Lines changed: 2 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp