/ Published in: PHP

URL: http://aerocoding.com/en/question/27/Using-cakephp-elastic-search-with-pagination
How do you use the elastic-search plugin with cake's native pagination?
Expand |
Embed | Plain Text
)->toArray(); foreach ($products as $product) { $ids[] = $product['id']; } $this->paginate = [ 'limit' => 10, ), ]; $products = $this->paginate('Products'); $this->set('products', $products');
You need to login to post a comment.