• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About structure

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?

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.

Thanks for the guidance.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme ¬© 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.