我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在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

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', []);

近期文章

  • 从Carbon到来的日期和指定日期获取日期?
  • 如何将js变量传递给laravel中的url标记
  • 无脂框架[F3]不会取代@,我缺少什么?
  • 在laravel中的db中验证并提交表单
  • 使用array_splice()在矩阵中一次删除两列
  • 有没有办法用php file_get_contents绕过403错误?
  • 如何检查多个变量并初始化非空变量?
  • 在Array Map Function PHP中使用变量
  • 搜索时显示产品价格
  • 在codeigniter视图中包含独立项目
  • 如何在关联数组中使用IS NOT NULL
  • 我如何保护我的laravel身份验证
  • 在web.php laravel中切换路由
  • Try / catch在Yii2中没有捕获异常
  • 如何使用codeigniter上传超过2mb的文件
  • 错误:通过php从json数据中获取值时
  • 用php和html显示日期输入
  • 如何计算使用出生日期的用户的平均年龄
  • SELECT计算来自2个表的行并对结果求和
  • 使用特定键保存项目数组

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华