handle(); } private function handle() { } function clean_input( $post ) { return str_replace( 'null', '', $this->db->escape_str( $this->input->post( $post ), TRUE ) ); } public function json($data) { echo json_encode($data); } }