File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ The ``hello`` action will now match URLs like ``/hello/fabien.xml`` or
172
172
like ``/hello/fabien.js ``, because the value of the ``_format `` variable doesn't
173
173
meet its requirements.
174
174
175
- Redirecting and Forwarding
176
- --------------------------
175
+ Redirecting
176
+ -----------
177
177
178
178
If you want to redirect the user to another page, use the ``redirectToRoute() ``
179
179
method::
@@ -193,23 +193,6 @@ method::
193
193
The ``redirectToRoute() `` method takes as arguments the route name and an optional
194
194
array of parameters and redirects the user to the URL generated with those arguments.
195
195
196
- You can also internally forward the action to another action of the same or
197
- different controller using the ``forward() `` method::
198
-
199
- // src/AppBundle/Controller/DefaultController.php
200
- class DefaultController extends Controller
201
- {
202
- /**
203
- * @Route("/", name="homepage")
204
- */
205
- public function indexAction()
206
- {
207
- return $this->forward('AppBundle:Blog:index', array(
208
- 'name' => 'Fabien',
209
- ));
210
- }
211
- }
212
-
213
196
Displaying Error Pages
214
197
----------------------
215
198
You can’t perform that action at this time.
0 commit comments