For example, like ThinkPHP, it can be set in the configuration file. How is YII2.0 configured?
For example, like ThinkPHP, it can be set in the configuration file. How is YII2.0 configured?
With the advanced version, the front and backends have been separated. I wanted to say something when I saw your title, but when I saw that there was something about TP, I didn’t want to say anything anymore.
In addition, the real name is against the example above. Just changing ns will not work. There are also aliases. If you want to use init to switch the environment, you also need to configure env, etc.
In the mold structure in the yii2 advanced template, backend represents the background application, and frontend represents the front-end application. The front-end and back-end are completely independent, which means that the front-end is removed, and the back-end is still normal. You can also build, for example, a web-based API application. For example: make a backend copy into the API and then pay attention to modifying the namespace.