how to remove module name from url in yii [duplicate]

家住魔仙堡 提交于 2019-12-12 20:25:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!