public function remove($person_id = null) { $person_id = (int) preg_replace('/\\.json$/i', '', $person_id); $result = null; $people = new Person_Model(); $result = $people->remove($person_id); if ($this->is_json_request()) { $this->json_response($result); } // die($update_context); }