Symfony 3 overwrite FOS UserTemplate - but put the Views in my Bundle

M. F

I write my own Bundle, in this bundle I need all the time the FOS User Bundle. So I put changed Forms and Entities in my Bundle. Finally I change the views from the FOS login and other pages.

I know that I have to put this in app/Resources/FOSUserBundle/views.

But my question - that I have this all in the future directly in my Bundle - is it possible to put this changed files in to my Bundle Folder? I tried under resource src/MyBundle/Resources/FOSUserBundle/views but it's not working.

Is this possible?

MF

Ollie in PGH

There's a very standard way to override the directory structure in Symfony. It's a simple yaml file entry.

Whether this works perfectly with FOSUserBundle, I don't know. But it's a start. Example:

twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    paths:
      "%kernel.root_dir%/../templates": default
      "%kernel.root_dir%/../src/AppBundle/Resources/views": AppBundle
      "%kernel.root_dir%/../src/AdminBundle/Resources/views": AdminBundle

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Symfony 3 + FOS REST Bundle: Normalize values before validation

From Dev

Symfony Password Reset without FOS Bundle

From Dev

Symfony, Fos User Bundle, link to auth/login

From Dev

Symfony 2 FOS User Bundle Bootstrap modal AJAX Login

From Dev

Symfony: FOS user Bundle promote user via controller

From Dev

Infinite loop repository symfony2 fos user bundle

From Dev

Symfony2 FOS Rest bundle routing FileLoaderLoadException controller

From Dev

Symfony2 / FOS user bundle - Remember me after registration

From Dev

Symfony2 + FOS Rest Bundle - Regular route

From Dev

Symfony: FOS user Bundle promote user via controller

From Dev

What is wrong with my bundle extension class ( symfony 3 )?

From Dev

Lexik Bundle Symfony 3

From Dev

Symfony 3 - CollectionType of EntityType - Ajax submission (FOS REST)

From Dev

Symfony2 - Removed FOS User Bundle manually and now cannot clear cache in production mode

From Dev

Symfony 3: can't overwrite repository

From Dev

PHPUnit codecoverage of my Symfony bundle does not work

From Dev

PHPUnit codecoverage of my Symfony bundle does not work

From Dev

Symfony 4 how to use my own Bundle

From Dev

How to generate FOS UserBundle views

From Dev

Symfony 3: How to create a private bundle

From Dev

Unable to install bundle for Symfony 3 using Composer

From Dev

Sonata User Bundle + Symfony 3.x

From Dev

API Post to Sonata Media Bundle Symfony 3

From Dev

How to auto generate a bundle in Symfony3?

From Dev

Symfony 3 - Sonata Aplication Media Bundle error

From Dev

Symfony multiple requests to FOS Routing

From Dev

Symfony 3 HTTP Cache and Cross Origin Headers overwrite

From Dev

Symfony 2.7 / 3 - Doctrine: You have requested a non-existent service "fos_user.doctrine_registry"

From Dev

FOS Rest Bundle not returning proper json

Related Related

  1. 1

    Symfony 3 + FOS REST Bundle: Normalize values before validation

  2. 2

    Symfony Password Reset without FOS Bundle

  3. 3

    Symfony, Fos User Bundle, link to auth/login

  4. 4

    Symfony 2 FOS User Bundle Bootstrap modal AJAX Login

  5. 5

    Symfony: FOS user Bundle promote user via controller

  6. 6

    Infinite loop repository symfony2 fos user bundle

  7. 7

    Symfony2 FOS Rest bundle routing FileLoaderLoadException controller

  8. 8

    Symfony2 / FOS user bundle - Remember me after registration

  9. 9

    Symfony2 + FOS Rest Bundle - Regular route

  10. 10

    Symfony: FOS user Bundle promote user via controller

  11. 11

    What is wrong with my bundle extension class ( symfony 3 )?

  12. 12

    Lexik Bundle Symfony 3

  13. 13

    Symfony 3 - CollectionType of EntityType - Ajax submission (FOS REST)

  14. 14

    Symfony2 - Removed FOS User Bundle manually and now cannot clear cache in production mode

  15. 15

    Symfony 3: can't overwrite repository

  16. 16

    PHPUnit codecoverage of my Symfony bundle does not work

  17. 17

    PHPUnit codecoverage of my Symfony bundle does not work

  18. 18

    Symfony 4 how to use my own Bundle

  19. 19

    How to generate FOS UserBundle views

  20. 20

    Symfony 3: How to create a private bundle

  21. 21

    Unable to install bundle for Symfony 3 using Composer

  22. 22

    Sonata User Bundle + Symfony 3.x

  23. 23

    API Post to Sonata Media Bundle Symfony 3

  24. 24

    How to auto generate a bundle in Symfony3?

  25. 25

    Symfony 3 - Sonata Aplication Media Bundle error

  26. 26

    Symfony multiple requests to FOS Routing

  27. 27

    Symfony 3 HTTP Cache and Cross Origin Headers overwrite

  28. 28

    Symfony 2.7 / 3 - Doctrine: You have requested a non-existent service "fos_user.doctrine_registry"

  29. 29

    FOS Rest Bundle not returning proper json

HotTag

Archive