class Controller_Admin_Upload extends Controller_Admin {
   public function action_index()
   {
      $this->auto_render = false;
      if (Upload::is_valid() && Input::is_ajax())
      {
         /*** upload file processing here ***/
         echo json_encode(array('formhtml'=>$html, 'image'=>$image));
      }
      else
      {
         // exit with fail
         exit('upload_err');
      }
   }
}
		$(document).ready(function() {
   $('#calendar').fullCalendar({
    editable: false,
    url: true,
    events: 'admin/events/index'
   })
  });
class Controller_Admin_Events extends Controller_Admin
{
 public function action_index()
 {
  $events = Model_Event::find('all');
  $data['events'] = $events;
  echo json_encode($events);
  print_r($events);
  $this->template->title = "Events";
  $this->template->content = View::forge('admin/events/index', $data);
 }
class Controller_Admin_Events extends Controller_Admin
{
 public function action_index()
 {
  $events = Model_Event::find('all');
  $data['events'] = $events;
  $this->template->title = "Events";
  $this->template->content = View::forge('admin/events/index', $data);
 }
It looks like you're new here. If you want to get involved, click one of these buttons!