adesigns / calendar-bundle

This bundle allows you to integrate the jQuery FullCalendar plugin into your Symfony2 application.
MIT License
97 stars 60 forks source link

Calendar-holder is empty #21

Closed ThomasDeudon closed 10 years ago

ThomasDeudon commented 10 years ago

I can't understand what i did wrong, i did it twice and always the same problem, my div with id calendar-holder is empty ( i checked, javascript is there but i get the error message in the javascript : "Uncaughted reference error : routing is not defined" for the line "url: Routing.generate('fullcalendar_loader'),"

Thanks for any answer

mikeyudin commented 10 years ago

This bundle has a dependency on the FOSJsRouting bundle to expose the calendar AJAX event loader route. Please install and configure that bundle https://github.com/FriendsOfSymfony/FOSJsRoutingBundle

ThomasDeudon commented 10 years ago

Yes, i installed it and did everything from it from start tu usage :/

ThomasDeudon commented 10 years ago

Maybe there is a manipulation to do with FOSjsRouting for enable the calendar?

mikeyudin commented 10 years ago

Did you add the FOSJs javascript to your page?

bundles/fosjsrouting/js/router.js {{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}

On Sun, Jul 13, 2014 at 3:08 AM, Thomas DEUDON notifications@github.com wrote:

Maybe there is a manipulation to do with FOSjsRouting for enable the calendar?

— Reply to this email directly or view it on GitHub https://github.com/adesigns/calendar-bundle/issues/21#issuecomment-48833691 .

ThomasDeudon commented 10 years ago

i got this : "<......script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}">" in my view ( without the .... )

mikeyudin commented 10 years ago

You also need the bundles/fosjsrouting/js/router.js

ThomasDeudon commented 10 years ago

Thanks, i'm trying to indent router.js then to add it :)

ThomasDeudon commented 10 years ago

Ok, this will take some time xD Is there a way to have it in a proper way already? :P

mikeyudin commented 10 years ago
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>
ThomasDeudon commented 10 years ago

You're to kind with me !

Thanks a lot ! Have a great day and may peaple give you back this help :)

Regards,

Ps : i didn't found any docs about option in calendar, is there a way to add some options already done? :) ( like a button that select today ? :) ) Anyway, thank you verymuch

EDIT : something strange : the position about the Today option make it work ;) try to put it before any other option

mikeyudin commented 10 years ago

As you get more familiar with it, you'll learn how to customize it to fit your needs. Thanks!

mikeyudin commented 10 years ago

That would be a question for fullcalendar. This is a symfony bundle that simply integrates the javascript library.

On Mon, Jul 21, 2014 at 1:15 PM, Thomas DEUDON notifications@github.com wrote:

Do you know why the today button can't be add by the way it is in the fullcalendar doc : http://arshaw.com/fullcalendar/docs/display/header/

I tried to add :

in the view but still doesn't work because of this : http://arshaw.com/fullcalendar/docs/current_date/today/

— Reply to this email directly or view it on GitHub https://github.com/adesigns/calendar-bundle/issues/21#issuecomment-49635737 .