dtg78700 2015-03-21 18:19
浏览 154
已采纳

如何在模板中的urlfor函数中选择模块名称

Im working in a beego application with 2 modules, and has a controller with the same name in both modules. When I use {{urlfor}} in template the generated url is linking with the other module.

Anybody know if its posible select module name in urlfor function? I search in the docs and cant see any reference about. Im currently use beego 1.4.3

Thanks in advance

  • 写回答

1条回答 默认 最新

  • dqifn68206 2015-04-01 10:14
    关注

    For anybody with the same issue:

    The problem is how I implemented the application folder structure for modules. It seems not be compatible with {{urlfor}}.

    The correct answer come from github: https://github.com/astaxie/beego/issues/1100

    In the link you can found the correct directory tree

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 pc微信3.6.0.18不能登陆 有偿解决问题
  • ¥15 求TYPCE母转母转接头24PIN线路板图
  • ¥100 国外网络搭建,有偿交流
  • ¥15 高价求中通快递查询接口
  • ¥15 解决一个加好友限制问题 或者有好的方案
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集