问题
I try to remove module name from url in YII
http://testdomail.com/demo/user/create
I want
http://testdomail.com/user/create
Where demo is my module name. How can I do this?
回答1:
You can define any url in your config by making some changes in your configuration file main.php
.
Please have a look here.
来源:https://stackoverflow.com/questions/24989418/how-to-remove-module-name-from-url-in-yii