A parser is a script that is launched by the server using CRON according to a schedule and makes some third-party requests, for example, to the API using CURL. It means in which folder to put it would be architecturally correct? View such things do not probably need. Do I need to use the model and controller? (after all there can be work from a DB)
|
cronfolder :) - Alexey Shimanskymigrationfolder in the root, there arecomponets, there can bemessagesandtests. cron is no worse. - Alexey Shimanskywebfolder there is anindex.phpin which the framework is connected? No one bothers to make the connection the same way in the cron folder. For example, take a look at theyiifile without the extension at the root of the project. it also has all these connections, so that you can run it from the batch file or run various commands from a console such as init, migrate, or something else there - Alex Shimansky