M
M
Messi2018-08-23 08:44:47
Yii
Messi, 2018-08-23 08:44:47

How to properly organize xml import?

Hello! There is a site written with the help of yii2-advanced.
There is a task, sometimes you need the ability to import data from an xml file into the database. Can you please tell me how to organize it?
1. In the project, near the backend, frontend folders, create an xml folder in which to add files for import.
2. Write a console command to import and run the command?
This is a very rare task, such an import may be needed once a month.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kim, 2018-08-23
@FitTech

I would add this functionality to the back (admin panel) than upload files to the server, then log in via ssh and run a console command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question