I have about 10 tables I need to load for each controller. Right now I am loading each one in every controller. What is the best way to just load them once and have access to them in each controller. I tried putting them in system/core/Controller.php class CI_Controller and it works. But I am sure this is not the best way to go about it. Any ideas? Thanks.
I have about 10 tables I need to load for each controller. Right now
Share
If you really need to load everything all at once, you can create a helper method that you will call in the constructor of each of your controllers.
Link to creating helper method – CodeIgniter: Create new helper?