title: Resources only loaded. Events not working in FullCalendar
body: <p>I have been working on scheduler and found that full calendar could be a good solution to me. I have loaded resources and event with values that came up with the code. But, When I grab resources from my database, event stopped working.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;style type='text/css'&gt;
  
      #calendar {
          width: 100%;
          }
  
  &lt;/style&gt;
  
  &lt;script type='text/javascript'&gt;
  
      $(document).ready(function() {
  
          var date = new Date();
          var d = date.getDate();
          var m = date.getMonth();
          var y = date.getFullYear();
  
          var calendar = $('#calendar_resources').fullCalendar({
              header: {
                  left: 'prev,next today',
                  center: 'title',
                  right: 'resourceDay,resourceWeek,resourceNextWeeks,resourceMonth'
              },
              defaultView: 'resourceMonth',
              firstDay: 1,    
              editable: true,
              selectable: true,
                      minTime: 8,
          maxTime:16,
              selectHelper: true,
              events: [
                  {
                      title: "Lunch 12.15-14.45",
                      start: new Date(y, m, d, 12, 15),
                      end: new Date(y, m, d, 14, 45),
                      allDay: false,
                      resource: 1
                  },              
                  {
                      title: 'Meeting from this day to this +4',
                      start: new Date(y, m, d, 10, 30),
                      end: new Date(y, m, d+4, 11, 00),
                      allDay: false,
                      resource: 1
                  },
                  {
                      title: 'Meeting 11.00',
                      start: new Date(y, m-2, d, 11, 00),
                      allDay: true,
                      resource: 2
                  },
                  {
                      title: 'Lunch 12-14',
                      start: new Date(y, m, d, 12, 0),
                      end: new Date(y, m, d, 14, 0),
                      allDay: false,
                      resource: 3
                  }       
              ],
              resources: base_url+'admin/allocations/load_resources/&lt;?php echo $product_id; ?&gt;',
              select: function(start, end, allDay, jsEvent, view, resource) {
                  var title = prompt('event title:');
  
                  if (title) {
                      calendar.fullCalendar('renderEvent',
                          {
                              title: title,
                              start: start,
                              end: end,
                              allDay: allDay,
                              resource: resource.id
                          },
                          true // make the event "stick"
                      );
                  }
                  calendar.fullCalendar('unselect');
              },
              resourceRender: function(resource, element, view) {
                  // this is triggered when the resource is rendered, just like eventRender
              },
              eventDrop: function( event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view ) { 
                  alert('event moved to '+event.start+' to '+event.resource);
              },
              eventResize: function( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, view ) { 
                  alert('event was resized, new endtime: '+event.end);
              },
              eventClick: function ( event, jsEvent, view )  {
                  alert('event '+event.title+' was left clicked');
              },
              eventRender: function( event, element, view ) { 
  
              },
              windowResize: function( view ) {
                  calendar.fullCalendar('option', 'height', $(window).height() - 40);
              }
          });
      });
  
  &lt;/script&gt;
  
  
  
  &lt;div id='calendar_resources'&gt;&lt;/div&gt;
  &lt;div id='contextMenuContainer' style='background-color:#f0f0f0;width:100px;height:100px;display:none;z-index:999;border-radius:5px;border:1px solid black;position:absolute;'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I am stuck at this place. I am not able to get events in my calendar. Helping hands are appreciated.</p>