views:

40

answers:

1

When using $this->_forward() in a Controller, in the resulting Controller the return for $request->getControllerName() returns the Controller Name from the first Controller.

But when using $request->getParm("controller") it returns the correct Controller for the current Controller.

Why are these different?

+1  A: 

If you use Forward, it is still the same request. The "getControllerName" method checks for this. Get Param not..

ArneRie
Ah right! Thanks.
jakenoble