Does PHP Have an Equivalent of Java's RequestDispatcher.forward?

后端 未结 7 2121
南笙
南笙 2021-02-06 03:32

In Java I can write a really basic JSP index.jsp like so:

<% request.getRequestDispatcher(\"/home.action\").forward(request, response); %>

7条回答
  •  日久生厌
    2021-02-06 04:03

    If you use an MVC like the Zend Framework provides you can change the controller action or even jump between controller actions. The method is _forward as described here.

提交回复
热议问题