Hello everyone! I added a custom namespace to yii2.0basic such as: commonservice. There is a class Test.php in this folder, which is referenced in TestController.php of controllers. I found that after running, it always prompts that it cannot be found. It should The custom namespace has not been loaded by the framework, so I don't know it. So how to load the custom namespace in basic? In advanced, the alias should be set in commonconfigbootstrap.php. How to set the alias in basic? Thanks!
Hello everyone! I added a custom namespace to yii2.0basic such as: commonservice. There is a class Test.php in this folder, which is referenced in TestController.php of controllers. I found that after running, it always prompts that it cannot be found. It should The custom namespace has not been loaded by the framework, so I don't know it. So how to load the custom namespace in basic? In advanced, the alias should be set in commonconfigbootstrap.php. How to set the alias in basic? Thanks!