name all form field
This commit is contained in:
@@ -41,4 +41,9 @@ class AdminLogin extends BaseForm {
|
||||
->add("password", "password");
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return "admin_login";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -61,7 +61,7 @@ abstract class BaseForm {
|
||||
)
|
||||
->addExtension(new ValidatorExtension($validator))
|
||||
->getFormFactory()
|
||||
->createBuilder($type, $data, $options);
|
||||
->createNamedBuilder($this->getName(), $type, $data, $options);
|
||||
;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user