I'm building my first web app with Codeigniter, so please go easy.
As part of my application, I have a function in a PHP file that calls an API, parses the results, and inserts them into the app database. Right now, I have it stored outside the CI application folder. It doesn't really require an MVC structure. It's just a private function.
Where is the best place to store and run the file? Do I just keep it outside, or is there a structure convention for how to store private function files that need views or controllers?