Welcome Guest, Not a member yet? Register   Sign In
About structure
#1

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?
Reply
#2

Hi, and welcome to the forum.

I would place it in /application/library, and load it from there. So that your main folder don't get bloated in case you add more "third party" scripts.
Reply
#3

Thanks for the guidance.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB