Documentation

Controller

Controller class of methods

Method Description Available from version
__construct(
   \Bitrix\Main\Request $request = null
)
Constructor method. Parameters:
  • $request {\Bitrix\Main\Request|null} - Request object that will be used inside the controller, actions and filters. By default, uses request object, provided inside Context::getCurrent()->getRequest()
forward(
   $controller, 
   string $actionName, 
   array $parameters = null
)
Call-forwarding from current controller to another action. Simultaneously, saves current context (scope, currentUser, request). When initiating action performs full cycle with pre-filters, post-filters and etc.
  • $controller {\Bitrix\Main\Engine\Controller|string} - current controller,
  • $actionName {string} - new action name,
  • $parameters {array|null} - action parameters.

© «Bitrix24», 2001-2024