在我的个人Symfony3.2项目中,我想在我的HtmlPurifier表单中使用UserProfile,以防止XSS攻击。因此,正如在:中所描述的,我一致地修改了UserProfileFormType:
use Symfony\Component\Form1必须是未给定的Symfony\Component\Form\DataTransformerInterface,的</
这可能很容易,但我对symfony2还不熟悉,所以我想先问一下。return $this->render('EraAdminBundle:Login:login.html.php', array('form'=>$form->createView()));用户名和密码字段是管理员实体的一部分因为如果我让它变成这样,我就会犯这样的错误:
Neither the property "remember" nor one of the method