Nima plz change my code
On 8 April 2014 12:39, Muhammad Arif <[email protected]> wrote: > <div id="fullcalendar"></div> > > <?php //$this->headScript()->captureStart(); ?> > <script> > $(document).ready(function() { > // page is now ready, initialize the calendar... > $('#fullcalendar').fullCalendar({ > > > header: { > left: 'prev,next today', > center: 'title', > right: 'month,agendaWeek,agendaDay' > }, > > defaultView: 'month', > allDaySlot: false, > > events: '<?php echo $this->url('event',array('action'=>'load', > 'id' => $this->escapeHtml($calendar->calendar_id)));?>', > > eventDataTransform: function(eventData) { > //eventData.start = new Date(eventData.begin); > //eventData.end = new Date(eventData.end); > eventData.start = new Date(eventData.year, eventData.month, > eventData.day, eventData.hours, eventData.minutes, eventData.seconds, > eventData.milliseconds); > eventData.end = new Date(eventData.year, eventData.month, > eventData.day, eventData.hours, eventData.minutes, eventData.seconds, > eventData.milliseconds); > eventData.allDay = false; > eventData.url = '<?php echo > $this->url('event',array('action'=>'show'));?>' + '/' + eventData.event_id; > return eventData; > }, > > dayClick: function(date, allDay, jsEvent, view) { > > var action = '<?php echo > $this->url('event',array('action'=>'create', 'id' => > $this->escapeHtml($calendar->calendar_id))) ?>'; > var dateUri = date.getTime() / 1000; > var allDayUri = allDay ? 1 : 0; > > console.log(action + '/' + dateUri + '/' + allDayUri); > window.location = action + '/' + dateUri + '/' + allDayUri; > }, > > > }); > }); > </script> > > <?php //$this->headScript()->captureEnd(); ?> > > here i want to show events,can you decode my response and set in this code? > > > On 8 April 2014 12:32, Nima Sadjadi <[email protected]> wrote: > >> I think wherever you want to show the calendar, you should decode it as >> array and parse the array to show. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "doctrine-user" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/doctrine-user/8fvWXCbkdWk/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/doctrine-user. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
