title: How to Display data from controller to full calander in code igniter
body: <p>Here is my controller</p>
  
  <pre><code> function Test_Function()
      {
  
  
   // Event id;
      // event.title is the only place where you can "display" text;
      // event.start: What date should the event be placed
      $data = array
      (
          array
          (
              'id' =&gt; 1234, 
              'title' =&gt; "Mr Name xxxxx\nDate 2016-06-04T00:00:00\nBirthday\nemail sasa@asfda.com\nTelephone 1234567890",
              'start' =&gt; "2016-06-15"
          ),
      );
      // add more array(...events...) as required
      echo json_encode($data);    
   }
  </code></pre>
  
  <p>I need to display these details in full calendar using ajax , How to display the result </p>
  
  <pre><code>   &lt;script&gt;
  $(document).ready(function() {
      $('#calendar').fullCalendar({
          events: {
              url: '&lt;?php echo site_url('Air/Get_calander_fare'); ?&gt;',
              type: 'POST',
              data: {
                  value1: 'aaa',
                  value2: 'bbb'
              },
              success: function(data) {
                  console.log(data);
              },
              error: function() {
                  alert('there was an error while fetching events!');
              },     
          }
      });
  });
  </code></pre>
  
  <p>
  I need to display Name,Data,Email,Telephone in the Date from the $data</p>