File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,14 @@ How to Forward Requests to another Controller
5
5
=============================================
6
6
7
7
Though not very common, you can also forward to another controller internally
8
- with the :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController::forward `
9
- method. Instead of redirecting the user's browser, this makes an "internal"
10
- sub-request and calls the defined controller. The ``forward() `` method returns
11
- the :class: `Symfony\\ Component\\ HttpFoundation\\ Response ` object that is returned
8
+ with the ``forward() `` method provided by the
9
+ :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ AbstractController ` class
10
+ (or :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerTrait ` if
11
+ your controller doesn't extend from ``AbstractController ``).
12
+
13
+ Instead of redirecting the user's browser, this makes an "internal" sub-request
14
+ and calls the defined controller. The ``forward() `` method returns the
15
+ :class: `Symfony\\ Component\\ HttpFoundation\\ Response ` object that is returned
12
16
from *that * controller::
13
17
14
18
public function index($name)
You can’t perform that action at this time.
0 commit comments