I’ve made a helper class that deals with times. I have a separate file inside my helper folder called countryCodes.php (pretty similar to the mimeTypes.php that is already there). The only thing it contains is a rather long array of two letter country codes and their respective countries. I’d like to use this array inside a method in my helper class. What is the proper way to include it?
Thank you for the answers. The reason I put it in an array is because I copied and pasted it off the internet and it was already formatted as an array. I don’t really see the benefit of migrating it to the database. I put it in a separate file because it is about 200 entries long and while working on my class it just makes the code easier to read. The last answer you posted Kartik V is just what I was looking for. Thanks!
Yes, I kind of understood, where you were getting at. Just ensure your data integrity is correct… as you may not now have referential constraints like foreign key relations, when you are holding such data OUTSIDE YOUR DB.