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

后端 未结 7 2135
南笙
南笙 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:23

    I believe one of the closest analogous methods would be to use the virtual() function on while running php as an apache module.

    virtual() is an Apache-specific function which is similar to in mod_include. It performs an Apache sub-request.

提交回复
热议问题