You have seen how to load a specific record by ID usingĀ KenedoModel::getRecord(), here we talk about getting multiple records with filters and ordering. For use in paginated views, you can set start and limit.
Quick example:
Code Block | ||||
---|---|---|---|---|
| ||||
$model = KenedoModel::getModel('ConfigboxModelProducts'); // Returns data of all ConfigBox products with no filters or specific ordering. $products = $model->getRecords(); // with all parameters (see descriptions below) $products = $model->getRecords($filters, $pagination, $ordering, $languageTag); |
...