Star

Prestashop

Reuse the shop's database connection

The PrestashopAdapter talks to the singleton Db instance, so you can drop it into any module controller.
<?php
use Ozdemir\Datatables\Datatables;
use Ozdemir\Datatables\DB\PrestashopAdapter;

$dt = new Datatables(new PrestashopAdapter(Db::getInstance()));
$dt->query('Select id_product, name, price from '._DB_PREFIX_.'product');

echo $dt->generate();