Answer the question
In order to leave comments, you need to log in
How to implement system copies on a subdomain in Yii2?
Hello, does anyone have a question?
There is a mini CRM on Yii2 when registering, the higher director is indicated, it is
necessary to implement something like a copy of the entire system on subdomains, while the system should be one,
but the admin panel (implemented by the basic template module) does each subdomain have its own?
Answer the question
In order to leave comments, you need to log in
Well, in a simple way, you can keep a mini-crm zip archive that you will deploy, but a base or migration or dump from the same archive. In your case, the most difficult thing is how to automate the process of creating a subdomain and a database for a project.
Different entry points, let's say the application config is collected in them. Simply, depending on the subdomain, do different prefixes for the database. You can also have 1 entry point, if auto-subdomains and dynamically add prefixes for the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question