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

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

报告相同问题?

悬赏问题

  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效