Welcome Guest, Not a member yet? Register   Sign In
Best place for external data files
#1

[eluser]Unknown[/eluser]
Search in the forums didn't give me any results for this.

This is a question for best practice:
Where would be the best place to put external data files like csv-files I want to use in my application.

Put it in
Code:
assets->data->mydata.csv
or to the model wich will use this data
Code:
system->application->models->MyModel->mydata.csv

Looking forward to your suggestions
#2

[eluser]xwero[/eluser]
I think the first solution is the most logical. Specifying the directory will limit the use and could lead to copying the file because you need it in another model. I would store the data files in the application/data directory




Theme © iAndrew 2016 - Forum software by © MyBB