HMVC的URL能修改吗?
HMVC的路径http://localhost/ci/modules/test2/home_made我知道可以修改成http://localhost/ci/m/test2/home_made
但是能改成http://localhost/ci/test2/home_made吗?
怎么修改????? @HEX {:soso_e130:}{:soso_e130:} rewrite rule 阳光笑脸 发表于 2012-3-1 22:27 static/image/common/back.gif
rewrite rule
HMVC的路径http://localhost/ci/modules/test2/home_made
用rewrite去掉后,那原本的http://localhost/ci/test2/home_made怎么办(不是modules的)?不是两个重叠了??? 傻瓜青蛙~~ 发表于 2012-3-2 09:15 static/image/common/back.gif
HMVC的路径http://localhost/ci/modules/test2/home_made
用rewrite去掉后,那原本的http://localhost/ci ...
用 URI 路由就可以了 用不着 rewrite Hex 发表于 2012-3-2 13:50 static/image/common/back.gif
用 URI 路由就可以了 用不着 rewrite
那原本的http://localhost/ci/test2/home_made怎么办(不是modules的)?不是两个重叠了??? 傻瓜青蛙~~ 发表于 2012-3-2 16:00 static/image/common/back.gif
那原本的http://localhost/ci/test2/home_made怎么办(不是modules的)?不是两个重叠了??? ...
不重叠,因为路由是一个规则一个规则处理的,你只需要做很多规则就可以了。 Hex 发表于 2012-3-2 19:44 static/image/common/back.gif
不重叠,因为路由是一个规则一个规则处理的,你只需要做很多规则就可以了。 ...
明白了,如果是m/c/function,虽然地址是c/function,但是还是modules的。
如果是c/function,那就直接是c/function的,不是modules的
页:
[1]