Fastadmin会员中心注册登陆url路由调整的方法。现有的注册登陆是 /index/user/login/ 想让他成/user/login/这样的,需要怎么做呢,请高手详细指导,谢谢!
首先修改application/route.php中的__alias__值。其他插件如果也想省去index,按截图的规则增加即可。
然后在模板文件中调用时,要注意把URL补全不然不会生效。
找到并打开这两个文件:
application/index/view/layout/default.html
application/index/view/common/sidenav.html
找到比如{:url('user/changepwd')} 改成 {:url('index/user/changepwd')}
可以搜索url('user/ 批量替换为 url('index/user/
这样就将fastadmin会员中心里的URL路由规则全部修改完成了。