title: Laravel Datatables NOT working, NO error
body: <p>When i visit the page, i just get the "Processing" but nothing is happening. Ive looked at the javascript console in chrome and i dont get any errors.. so im doing something wrong, but i dont know what it is. At first i thought it was the JSON output not being properly formatted, but i check it against jsonlint.com</p>
  
  <p>Im sure this is something simple im over looking... Please?</p>
  
  <p>The blog data controller</p>
  
  <pre><code>public function data()
  {
      $posts = Post::select(array('posts.id', 'posts.title', 'posts.id as comments', 'posts.created_at'));
      return Datatables::of($posts)
      -&gt;edit_column('comments', '{{ DB::table(\'comments\')-&gt;where(\'post_id\', \'=\', $id)-&gt;count() }}')
      -&gt;add_column('actions', '&lt;a href="{{{ URL::to(\'admin/blog/\' . $id . \'/edit\' ) }}}" class="btn btn-default btn-xs iframe" &gt;{{{ Lang::get(\'button.edit\') }}}&lt;/a&gt;
              &lt;a href="{{{ URL::to(\'admin/blog/\' . $id . \'/delete\' ) }}}" class="btn btn-xs btn-danger iframe"&gt;{{{ Lang::get(\'button.delete\') }}}&lt;/a&gt;
          ')
      -&gt;remove_column('id')
      -&gt;make();
  }
  </code></pre>
  
  <p>The javascript:</p>
  
  <pre><code>&lt;table id="posts" class="table table-bordered table-hover"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;ID&lt;/th&gt;
              &lt;th&gt;Title&lt;/th&gt;
              &lt;th&gt;Content&lt;/th&gt;
              &lt;th&gt;Created&lt;/th&gt;
              &lt;th&gt;{{{ Lang::get('table.actions') }}}&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  @stop
  
  @section('scripts')
  &lt;script type="text/javascript"&gt;
      var oTable;
      $(document).ready(function() {
              oTable = $('#posts').dataTable({
              "sDom": "&lt;l&gt;&lt;f&gt;&lt;r&gt;t&lt;i&gt;&lt;p&gt;",
              "sPaginationType": "bootstrap",
              "oLanguage": {
                  "sSearch": "Search:",
                  "sLengthMenu": "_MENU_ records per page"
              },
              "bProcessing": true,
              "bServerSide": true,
              "sAjaxSource": "{{ URL::to('admin/blog/data') }}"
          });
  
          $("#users_filter input").addClass("form-control inline-control input-sm");
          $("#users_length select").addClass("form-control inline-control");
      });
  &lt;/script&gt;
  @stop
  </code></pre>
  
  <p>UPDATE:
  The data tables works just fine on my localhost, but as soon as i pull the repo down to my production server it doesn't work.</p>
  
  <p>Here is the json data</p>
  
  <pre><code>{"sEcho":0,"iTotalRecords":2,"iTotalDisplayRecords":2,"aaData":[[1,"First Post","&lt;p&gt;Welcome to my new blog. It&amp;#39;s still under development and there are constantly changes being made. Just today i got CKEditor working on my blog admin, so that i could put HTML into my posts. Thi...&lt;\/p&gt;","1","2014-06-08 04:12:14","&lt;a href=\"http:\/\/www.asdasd.com\/admin\/blog\/1\/edit\" class=\"btn btn-default btn-xs iframe\" &gt;Edit&lt;\/a&gt;\n                &lt;a href=\"http:\/\/www.asdaf.com\/admin\/blog\/1\/delete\" class=\"btn btn-xs btn-danger iframe\"&gt;Delete&lt;\/a&gt;\n            "],[2,"second","yep its working","1","2014-06-08 05:58:13","&lt;a href=\"http:\/\/www.asdaf.com\/admin\/blog\/2\/edit\" class=\"btn btn-default btn-xs iframe\" &gt;Edit&lt;\/a&gt;\n                &lt;a href=\"http:\/\/www.asdaf.com\/admin\/blog\/2\/delete\" class=\"btn btn-xs btn-danger iframe\"&gt;Delete&lt;\/a&gt;\n            "]],"sColumns":["posts.id","posts.title","posts.content","posts.id as comments","posts.created_at","actions"],"aQueries":[{"query":"select * from `users` where `id` = ? limit 1","bindings":[1],"time":1.1},{"query":"select `roles`.*, `assigned_roles`.`user_id` as `pivot_user_id`, `assigned_roles`.`role_id` as `pivot_role_id` from `roles` inner join `assigned_roles` on `roles`.`id` = `assigned_roles`.`role_id` where `assigned_roles`.`user_id` = ?","bindings":[1],"time":0.99},{"query":"select `posts`.`id`, `posts`.`title`, `posts`.`content`, `posts`.`id` as `comments`, `posts`.`created_at` from `posts`","bindings":[],"time":3.98},{"query":"select count(*) as aggregate from `comments` where `post_id` = ?","bindings":[1],"time":2.34},{"query":"select count(*) as aggregate from `comments` where `post_id` = ?","bindings":[2],"time":0.73}]}
  </code></pre>
  
  <p>Here is what the app/storage/logs/log-cgi-fcgi-2014-06-21.txt</p>
  
  <pre><code>[2014-06-21 22:19:30] production.INFO: index [] []
  [2014-06-21 22:19:31] production.INFO: data [] []
  </code></pre>