carlescliment / calendar-bundle

A bundle for managing calendars in Symfony 2
40 stars 16 forks source link

Customizing view #19

Closed ajarzebowski closed 9 years ago

ajarzebowski commented 9 years ago

I am trying to customize template of calendar. I am doing everything as per documentation but when I am copying base.html.twig as per this https://github.com/carlescliment/calendar-bundle#1-override-the-default-base-template nothing happening. Bundle is still using templates from vendor directory and not from my bundle.

Am I doing something wrong?

carlescliment commented 9 years ago

Hi @8draco8, did you extend the CalendarBundle from your own?

class YourOwnBundle extends Bundle
{
    public function getParent()
    {
        return 'BladeTesterCalendarBundle';
    }
}
ajarzebowski commented 9 years ago

Yes I did but the solution was stupid simple .... clear cache. After that everything worked. I had some problems with extending my base template but I solved that by putting every non-twig code in twig blocks.

carlescliment commented 9 years ago

good!