Closed reypm closed 10 years ago
Hi the folder name ContactBundle
is wrong, rename it to MremiContactBundle
and then you should see your template.
@mremi I did the change as you suggest, then clear the Symfony cache and the browser cache, try again and get the same result. I'm trying to extends from the override MopaBootstrapBundle
that's in Resources at the same level as MremiContactBundle
, any other advice?
Weird, I did it successfully: I created app/Resources/MremiContactBundle/views/Contact/index.html.twig
and added lorem ipsum in the body block. I just refreshed my browser (with app_dev.php) and can see the lorem ipsum.
Can you try to do the same?
Ok I just see you forgot the Contact
folder in views
; the good path is app/Resources/MremiContactBundle/views/Contact/index.html.twig
.
Thx it's working now is just the folder structure was bad
Hi there, I'm trying to override the default layout for your bundle but I can't since I'm still getting the same layout all the time. This is what I did:
Create a folder inside
app/Resources
and call itContactBundle
and create the structure as picture below shows:Then in
index.html.twig
I want to extends fromMopaBootstrapBundle::base.html.twig
so I override the template by changing this:But content still showing with the default template:
What I'm doing wrong? Did I miss something?