-
-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
News Update My table error ! #15
Comments
I don't think you are calling this properly. That error is normally when columns don't match. Try some of the code the I've posted in this issue; |
Hi, the lower version of Datatables (v1.9 and below) is a little buggy on this package so i suggest you update your version to Datatables v1.10++ and follow the codes @illuminate3 has posted on #12 if possible. But anyways, I have some bug fix for lower version yesterday. Try checking it out and test again. Thanks! |
should be fixed on latest version. |
My Error :
ErrorException in Datatables.php line 329:
Undefined offset: 4
My Controller :
$data = News::join('news_lang', 'news_lang.parentid', '=', 'news.id')
->select(array('news.id','news.typew','news_lang.title','news.date'))
->orderBy('news.date', 'DESC')->where('news_lang.lang', 'tr');
My jquery:
oTable = $('#table').dataTable({
"sDom" : "<'row'<'col-md-6'l><'col-md-6'f>r>t<'row'<'col-md-6'i><'col-md-6'p>>",
"sPaginationType" : "bootstrap",
get data :
ata?sEcho=1&iColumns=5&sColumns=%2C%2C%2C%2C&iDisplayStart=0&iDisplayLength=10&mDataProp_0=0&sSearch_0=&bRegex_0=false&bSearchable_0=true&bSortable_0=true&mDataProp_1=1&sSearch_1=&bRegex_1=false&bSearchable_1=true&bSortable_1=true&mDataProp_2=2&sSearch_2=&bRegex_2=false&bSearchable_2=true&bSortable_2=true&mDataProp_3=3&sSearch_3=&bRegex_3=false&bSearchable_3=true&bSortable_3=true&mDataProp_4=4&sSearch_4=&bRegex_4=false&bSearchable_4=true&bSortable_4=true&sSearch=&bRegex=false&iSortCol_0=0&sSortDir_0=asc&iSortingCols=1&_=1427536607841
The text was updated successfully, but these errors were encountered: