QuestionQ76

VerifiedArchitecture

A developer is working on a task involving the creation of a custom controller. The controller must forward the request to a different action.

How can the developer complete this task?

Explanation

Adobe Commerce uses a Forward result object to invoke another action internally. The controller returns the result of calling the forward object's forward() method with the target action name; this does not create a new browser request and leaves the URL unchanged.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!