如何从 yii 中的 url 中删除模块名称 [英] how to remove module name from url in yii
本文介绍了如何从 yii 中的 url 中删除模块名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试从 YII
http://testdomail.com/demo/user/create
我想要
http://testdomail.com/user/create
其中 demo 是我的模块名称.我该怎么做?
Where demo is my module name. How can I do this?
推荐答案
您可以通过在配置文件 main.php
中进行一些更改来定义配置中的任何 url.
You can define any url in your config by making some changes in your configuration file main.php
.
请查看此处.
这篇关于如何从 yii 中的 url 中删除模块名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文