I have a callback function that I'm using to validate a submitted video URL based on YouTube or Vimeo APIs (depending on which URL they submitted). The callback function, as part of the validation, checks to validate their submission based on information we receive back from the video site's API.
All code functions 100% correctly and I have proper status' returned to the form validation, but the rest of the data we received from the YT or Vimeo API I would like to use higher up the chain in CodeIgniter. The problem is that this data is not accessible in the class, which I would then typically throw to the view.
Is there any way to get arrays or data set in a callback function accessible at the class level in my controller (where the validation happens)? I've been driving myself bonkers trying to figure this out with no success.