douyi3676 2017-12-05 10:42
浏览 9
已采纳

如何在Zend 3中路线到儿童路线?

I use Zend Framework Version 3. I would like to redirect the request to a new route, and in more precisely to a childroute?

If it was only a "parent" route I would to this

return $this->redirect()->toRoute('name-of-route', []);

however I have a childroute I would like to redirect to. How can this be done

  • 写回答

1条回答 默认 最新

  • drutcs7210 2017-12-05 13:45
    关注

    Assuming this works the same as in ZF2, you use a / to denote the heirarchy:

    return $this->redirect()->toRoute('name-of-route/name-of-child-route', []);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?