Accessing Loader::db() from php without calling index.php/…

Permalink
Hello,
I am trying to implement Datatables module within Concrete5 for table management (link is here:http://macabi.net46.net/index.php/mac_branches/)....
When updating a cell (inline), the Datatables update script calls a server side php to update a sql table.
Initially, I created a single-page that was using a Loader::db() class and then called it from the Datatables script (/index.php/ajax_update). Update to table was successful, but after it ran, Concrete5 responded with the page in a browser alert box.

To avoid this issue, I am currently calling UpdateData.php which is outside of Concrete5 and is accessing the DB directly. This responds well, as you can see in the demo link.

I must say I'm new to Concrete5... Can you suggest an elegant way to work within the platform?

Thanks in advance for your help , Yaron

 
wwwyaron replied on at Permalink Reply
Problem resolved with die()... Silly me!

Thanks anyway :-)