2016-02-12 58 views
1

我配置了一个symfony 2.7安装,其中包含了延续的sonata admin和sonata用户捆绑软件。我的后台工作做好了,还工作/个人资料页,但我得到这个错误/型材/编辑配置文件和/型材/编辑认证:配置文件编辑时的Sonata用户捆绑错误

Unable to find template "MopaBootstrapBundle:Form:fields.html.twig" in SonataUserBundle:ChangePassword:changePassword_content.html.twig at line 2. 

这是我config.yml

fos_user: 
    ... 
    profile: 
     form: 
      type:    fos_user_profile 
      handler:   fos_user.profile.form.handler.default 
      name:    fos_user_profile_form 
      validation_groups: [Authentication] 

sonata_user: 
    ... 
    profile: # Profile Form (firstname, lastname, etc ...) 
     form: 
      type:    sonata_user_profile 
      handler:   sonata.user.profile.form.handler.default 
      name:    sonata_user_profile_form 
      validation_groups: [Profile] 

有的路线:

sonata_user_resetting: 
    resource: "@SonataUserBundle/Resources/config/routing/sonata_resetting_1.xml" 
    prefix: /resetting 

sonata_user_profile: 
    resource: "@SonataUserBundle/Resources/config/routing/sonata_profile_1.xml" 
    prefix: /profile 

sonata_user_change_password: 
    resource: "@SonataUserBundle/Resources/config/routing/sonata_change_password_1.xml" 
    prefix: /profile 

也期待在树枝文件模板提及,但我没有看到它。 任何帮助将被折衷。

回答