// setParam is used for bc reasons, the attribute should be read for new code
$request->setParam('_isSubrequest', true); $request->setAttribute('_isSubrequest', true);
// fake to prevent rendering the templates with the widgets module.
// otherwise the template engine don't accept to load templates of the `frontend` module
$this->Request()->setModuleName('frontend'); }