Comments (4)
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.
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.
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.
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)
- Is this project maintained? HOT 3
- Will this bundle be upgraded to support Doctrine ORM 2.8? HOT 1
- Will this bundle support future symfony version (5) or is this project stopped? HOT 11
- how to override renderLogin fucntion of fosUserBundle?
- composer require not working HOT 2
- User->isAccountNonLocked used in ResettingListener but missing in UserInterface
- Release version 3.0 HOT 9
- FlashListener fix not included in the release HOT 1
- please consider supporting PHP 7.2.5, as that's the SF 5.x requirement HOT 1
- fos_user.listener.email_confirmation depends on non-existent service "session" HOT 2
- Call to undefined method getProviderKey() after confirming registration
- SECURI Authenticator does not support the request. Please help HOT 1
- PHP8.1 : deprecated function HOT 1
- Can't use incorrect type mixed for collection in FOS\UserBundle\Model\User:id HOT 3
- Issue with fos:user:deactivate HOT 1
- Registration: email confirmation
- Migration fos user 2.x to 3.x -> groups depreciation HOT 2
- Error when I deploy my symfony project with FosUser in production HOT 5
- XmlDriver Exception migrating to PHP 8.2 HOT 2
- Allow Symfony 7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fosuserbundle.