I am using CakePHP paginator on some screens and it working perfectly. On those screen i get data from only one table as per their model.
$where = array('order' => 'id desc', 'conditions' => $conditions); $this->paginate = $where; $this->set('my_events', $this->Paginator->paginate('MyEvents')); // Set in Model
No on one screen I get data from three tables separately and merge there data in on array. Now i can not figure it out that how can i use it in paginator. I am trying this
$result = array_merge($transaction_arr, $tickets_arr, $event_trans); $event_arr = $result; $this->set('event_buy_details', $event_arr);
I also try this
But nothing happened.
So how can I achieve this for paginator.
Hope you understand my question.