load->library( 'beheer/RetrieveUserSession' ); $this->handle(); } private function handle() { $this->retrieveusersession->handle(); $this->user = $this->User_model->get( USERID ); } function clean_input( $post ) { $value = $this->input->input_stream( $post, TRUE ); $denulledValue = str_replace( 'null', '', $value ); return $denulledValue; } public function json( $data ) { echo json_encode( $data ); } }