title: FullCalendar in cakePHP 3.0 not displaying events on calendar
body: <p>I am upgrading to cakePHP 3.0 and have almost all of the functionality of the FullCalendar plugin working except I can't get any events to populate on the calendar. I am not getting anymore error messages, which makes this difficult to solve. My controller method looks like this:</p>
  
  <pre><code>public function feed($id=null)
  {
      $this-&gt;request-&gt;allowMethod(['get']);
      $this-&gt;layout = "ajax";
      $vars = $this-&gt;params['url'];
      $conditions = ['conditions' =&gt; ['UNIX_TIMESTAMP(start) &gt;=' =&gt; $vars['start'], 'UNIX_TIMESTAMP(start) &lt;=' =&gt; $vars['end']]];
      $events = $this-&gt;Events-&gt;find('all', $conditions);
      foreach($events as $event) {
          if($event-&gt;all_day == 1) {
              $allday = true;
              $end = $event-&gt;start;
          } else {
              $allday = false;
              $end = $event-&gt;end;
          }
          $data[] = array(
                  'id' =&gt; $event-&gt;id,
                  'title'=&gt;$event-&gt;title,
                  'start'=&gt;$event-&gt;start,
                  'end' =&gt; $end,
                  'allDay' =&gt; $allday,
                  'url' =&gt; Router::url('/') . 'full_calendar/events/view/'.$event-&gt;id,
                  'details' =&gt; $event-&gt;details,
                  'className' =&gt; $event-&gt;event_type-&gt;color
          );
      }
      $this-&gt;set("json", json_encode($data));
  }
  </code></pre>
  
  <p>My View is :</p>
  
  <pre><code>&lt;?php
  /*
   * View/FullCalendar/index.ctp
   * CakePHP Full Calendar Plugin
   *
   * Copyright (c) 2010 Silas Montgomery
   * http://silasmontgomery.com
   *
   * Licensed under MIT
   * http://www.opensource.org/licenses/mit-license.php
   */
  ?&gt;
  &lt;div class="page-width"&gt;
      &lt;script type="text/javascript"&gt;plgFcRoot = "/&lt;site name&gt;/" + "full_calendar"; console.log(plgFcRoot);&lt;/script&gt;
      &lt;?php
      echo $this-&gt;Html-&gt;script(['/full_calendar/js/jquery-1.5.min', '/full_calendar/js/jquery-ui-1.8.9.custom.min', '/full_calendar/js/fullcalendar.min', '/full_calendar/js/jquery.qtip-1.0.0-rc3.min', '/full_calendar/js/ready']);
      echo $this-&gt;Html-&gt;css('/full_calendar/css/fullcalendar');
      ?&gt;
      &lt;div class="Calendar index"&gt;
          &lt;div id="calendar"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="actions"&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;?= $this-&gt;Html-&gt;link(__('New Event', true), ['controller' =&gt; 'events', 'action' =&gt; 'add']) ?&gt;&lt;/li&gt;
              &lt;li&gt;&lt;?= $this-&gt;Html-&gt;link(__('Manage Events', true), ['controller' =&gt; 'events']) ?&gt;&lt;/li&gt;
              &lt;li&gt;&lt;?= $this-&gt;Html-&gt;link(__('Manage Events Types', true), ['controller' =&gt; 'event_types']) ?&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My ready.js is:</p>
  
  <pre><code>/*
   * webroot/js/ready.js 
   * CakePHP Full Calendar Plugin
   *
   * Copyright (c) 2010 Silas Montgomery
   * http://silasmontgomery.com
   *
   * Licensed under MIT
   * http://www.opensource.org/licenses/mit-license.php
   */
  
  // JavaScript Document
  $(document).ready(function() {
  
  // page is now ready, initialize the calendar...
  $('#calendar').fullCalendar({
  
      header: {
          left:   'title',
          center: '',
          right:  'today agendaDay,agendaWeek,month prev,next'
      },
      defaultView: 'month',
      firstHour: 8,
      weekMode: 'variable',
      aspectRatio: 2,
      editable: false,
      events: plgFcRoot + "/events/feed",
      eventRender: function(event, element) {
          element.qtip({
              content: event.details,
              position: { 
                  target: 'mouse',
                  adjust: {
                      x: 10,
                      y: -5
                  }
              },
              style: {
                  name: 'light',
                  tip: 'leftTop'
              }
          });
      },
      eventDragStart: function(event) {
          $(this).qtip("destroy");
      },
      eventDrop: function(event) {
          var startdate = new Date(event.start);
          var startyear = startdate.getFullYear();
          var startday = startdate.getDate();
          var startmonth = startdate.getMonth()+1;
          var starthour = startdate.getHours();
          var startminute = startdate.getMinutes();
          var enddate = new Date(event.end);
          var endyear = enddate.getFullYear();
          var endday = enddate.getDate();
          var endmonth = enddate.getMonth()+1;
          var endhour = enddate.getHours();
          var endminute = enddate.getMinutes();
          if(event.allDay == true) {
              var allday = 1;
          } else {
              var allday = 0;
          }
          var url = plgFcRoot + "/events/update?id="+event.id+"&amp;start="+startyear+"-"+startmonth+"-"+startday+" "+starthour+":"+startminute+":00&amp;end="+endyear+"-"+endmonth+"-"+endday+" "+endhour+":"+endminute+":00&amp;allday="+allday;
          $.post(url, function(data){});
      },
      eventResizeStart: function(event) {
          $(this).qtip("destroy");
      },
      eventResize: function(event) {
          var startdate = new Date(event.start);
          var startyear = startdate.getFullYear();
          var startday = startdate.getDate();
          var startmonth = startdate.getMonth()+1;
          var starthour = startdate.getHours();
          var startminute = startdate.getMinutes();
          var enddate = new Date(event.end);
          var endyear = enddate.getFullYear();
          var endday = enddate.getDate();
          var endmonth = enddate.getMonth()+1;
          var endhour = enddate.getHours();
          var endminute = enddate.getMinutes();
          var url = plgFcRoot + "/events/update?id="+event.id+"&amp;start="+startyear+"-"+startmonth+"-"+startday+" "+starthour+":"+startminute+":00&amp;end="+endyear+"-"+endmonth+"-"+endday+" "+endhour+":"+endminute+":00";
          $.post(url, function(data){});
      }
  })
  
  });
  </code></pre>
  
  <p>Any help in this matter would be greatly appreciated.
  Sometimes I get this error in the console, but not every time:
  GET <a href="http://localhost/" rel="nofollow">http://localhost/</a>/full_calendar/events/feed?start=1433052000&amp;end=1436076000&amp;_=1433266131989 404 (Not Found)</p>