Answer the question
In order to leave comments, you need to log in
How to migrate articles from MODX to Yii2?
It was necessary to transfer articles from the site modx revo to yii2. Articles all with multiple categories (subcategories), about 250 pieces (articles). What is the easiest way to port them to yii? How are categories stored in modx and how are they displayed? I would then simply create similar tables in yii and quickly transfer them. Is it possible?
Answer the question
In order to leave comments, you need to log in
MaxKorz, this is only if MODx itself has foreign keys for mysql, but I have not yet seen any such engine.
You don't need to create a database similar to MODx, you can take it as it is and create models through gii. If a foreign key is written in the database, then gii will register all the links between the models, otherwise you will have to manually configure all the links.
I have never looked into your "mod", but common sense tells you that you can look at the foreign key of the `parent` field to see what exactly it refers to.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question