How to integrate Datatables Editor with Codeigniter?

How to integrate Datatables Editor with Codeigniter?

chetankchandakchetankchandak Posts: 8Questions: 2Answers: 0

I have already integrated, Datatables with my codeigniter frame work. But now i need the Datatables Editor version to be integrated. how can i achieve it? Pls help

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    A simple forum search finds several relevant posts, including this:
    https://datatables.net/forums/discussion/51514

  • chetankchandakchetankchandak Posts: 8Questions: 2Answers: 0

    Thanks. I tried the steps given here:
    http://ci.dubbel16.nl/index.php/2015/12/22/codeigniter-with-datatables-and-editor/

    The database is loading correctly. Delete option is also working.
    But When trying to create or edit from the popup, it doesnt works.

    When checked the Developer tools in Chrome,

    Its giving me following error everytime when i click Update Or Create:

    Severity: Warning

    Message: require(/home/freekccdy/public_html/esdsoftware/application/libraries/lib/Vendor/Htmlawed.php): failed to open stream: No such file or directory

    Filename: lib/Bootstrap.php

    Line Number: 45

  • colincolin Posts: 15,237Questions: 1Answers: 2,599
    edited October 2020

    This thread here might help - it looks like you need to rename the Editor files. It will be addressed in the next release,

    Colin

  • chetankchandakchetankchandak Posts: 8Questions: 2Answers: 0

    ya i had to rename few.
    But now its showing following error in ajax preview :neutral:

    <b>Fatal error</b>: Class 'DataTables\Vendor\Htmlawed' not found in <b>/home/freekccdy/public_html/esdsoftware/application/libraries/lib/Vendor/Htmlaw.php</b> on line <b>82</b><br />

    Pls help :neutral:

  • chetankchandakchetankchandak Posts: 8Questions: 2Answers: 0
    edited October 2020

    Finally I got the solution. But I think there must be some other way. And this should be corrected by the developer.

    I copied the content in Htmlawed.php, and pasted in Htmlaw.php

    Its working fine now.

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Yep, that's the advice in that link I posted. You're correct, it is a fault in our part, as Allan said in that post, and I said above, and it'll be addressed in the next release, which will hopefully be today.

    Colin

This discussion has been closed.