handle(); } private function handle() { $this->environment(); } function clean_input( $post ) { $value = $this->input->post( $post ); // $escapedValue = $this->db->escape_string( $value, TRUE ); $denulledValue = str_replace( 'null', '', $value); return $denulledValue; } public function json($data) { echo json_encode($data); } }