Hi Friends, I knew we can load data from a no-database file, like txt file, js file, or other format to a string by file_get_contents() function, I wanna to know how this work in zf2, I don't want to use file_get_contents() in zf2, because it seem not zf2 style, right? what about file_put_contents() in zf2?
I found a file folder in library, like the attached picture.
As well, what about the file_put_contents() funciton in zf2?
in my project, I create a data.js which store a json format data, then I can use the data (maybe array) in this data.js from php or javascript. so I need to use file_get_contents similar function in zf2 to load the array to php. by the way, where should I place this data.js? under public/js/ or in application/src/data or other place.
I hope I have express my problems clear, anyone who knows pls tell me, very appreciated!!

