Previous Page
_exceptionDuringFetch()

Solar_Example_Controller_Page
_forward()

Next Page
_forwardActionMethod()

_forward()

protected void _forward ( string $action, array $params default NULL )

Forwards internally to another action, using pre- and post- action hooks, and resets $this->_view to the requested action.

Inherited from Solar_Controller_Page.

Parameters

  • (string) $action: The action name.
  • (array) $params: Parameters to pass to the action method.

Returns

  • (void)

Description

Forwards internally to another action, using pre- and post- action hooks, and resets $this->_view to the requested action.

You should generally use "return $this->_forward(...)" instead of just $this->_forward; otherwise, script execution will come back to where you called the forwarding.