Welcome Guest, Not a member yet? Register   Sign In
Where store a lot of arrays?
#5

Both. Use separate configuration files to put your data and then create a library (it could be a model too, $this conveniently behaves there in a similar way as in controllers) that is to read the configuration files within their methods or, if necessary within the constructor. While reading this specific configuration use the "section" parameter for not making a possible conflict with the existing common configuration. Then in your application use only the library (or the model), it will "know" where to read data from, writing code would be easy.
Reply


Messages In This Thread
Where store a lot of arrays? - by emilovbg - 11-12-2017, 06:51 AM
RE: Where store a lot of arrays? - by PaulD - 11-12-2017, 06:56 AM
RE: Where store a lot of arrays? - by emilovbg - 11-12-2017, 07:09 AM
RE: Where store a lot of arrays? - by PaulD - 11-12-2017, 07:17 AM
RE: Where store a lot of arrays? - by ivantcholakov - 11-12-2017, 08:42 AM
RE: Where store a lot of arrays? - by averroez - 11-14-2017, 12:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB