Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar-holder is empty #21

Closed
ThomasDeudon opened this issue Jul 12, 2014 · 12 comments
Closed

Calendar-holder is empty #21

ThomasDeudon opened this issue Jul 12, 2014 · 12 comments

Comments

@ThomasDeudon
Copy link

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
Copy link
Member

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
Copy link
Author

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

@ThomasDeudon
Copy link
Author

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

@mikeyudin
Copy link
Member

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
#21 (comment)
.

@ThomasDeudon
Copy link
Author

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

@mikeyudin
Copy link
Member

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

@ThomasDeudon
Copy link
Author

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

@ThomasDeudon
Copy link
Author

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

@mikeyudin
Copy link
Member

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

@ThomasDeudon
Copy link
Author

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
Copy link
Member

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

@mikeyudin
Copy link
Member

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 :

Today

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
#21 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants