CRUD->index([ 'contain' => $this->containFields, 'filters' => $this->filterFields, 'quickFilters' => $this->quickFilterFields, 'afterFind' => function($data) { $data['request_ip'] = inet_ntop(stream_get_contents($data['request_ip'])); $data['changed'] = stream_get_contents($data['changed']); return $data; } ]); $responsePayload = $this->CRUD->getResponsePayload(); if (!empty($responsePayload)) { return $responsePayload; } } public function filtering() { $this->CRUD->filtering(); } }