Code Monkey home page Code Monkey logo

Comments (4)

stof avatar stof commented on September 7, 2024

did you clear your cache after changing the template ?

Btw, you should not do the change in the bundle file but overwrite the template. this will allow you to update the bundle easier.

from fosuserbundle.

stoefln avatar stoefln commented on September 7, 2024

Yes I did clear the cache. No effect.
And yes, I know that I shouldn't edit the bundle files, but AFAIK to inherit from the application's base template this line of code is needed:

{% extends '::base.html.twig' %}

Or is it not?
At least the documentation tells me here to do so: http://symfony.com/doc/2.0/book/templating.html#three-level-inheritance

from fosuserbundle.

stof avatar stof commented on September 7, 2024

It is. But what I said is that you should not put it in the file provided by the bundle (you should never edit a file in the vendor/bundles/FOS/UserBundle directory as it makes updates difficult) but overwriting this template instead by creating a new one in app/Resources/FOSUserBundle/views/.

Btw, when inheriting from another template, the code needs to be in a block (to be placed somewhere in the parent template) so adding {% extends '...' %} is not the only needed change.

from fosuserbundle.

stoefln avatar stoefln commented on September 7, 2024

Sorry- it was totally my own dumbness which punished me here!
Changes in your template showed no effect because i had already copied the original template to app/Resources/FOSUserBundle/views/ some days before, and forgot about it. Sorry for wasting your time, but thanks for your help!

BR Steph

from fosuserbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.