/ Published in: PHP

How do you use the elastic-search plugin with cake's native pagination?
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
)->toArray(); foreach ($products as $product) { $ids[] = $product['id']; } $this->paginate = [ 'limit' => 10, ), ]; $products = $this->paginate('Products'); $this->set('products', $products');
URL: http://aerocoding.com/en/question/27/Using-cakephp-elastic-search-with-pagination
Comments
