Piwik uses this class for all requests that go through **index.php**. Plugins can
use it to call controller actions of other plugins.
### Examples
**Forwarding controller requests**
public function myConfiguredRealtimeMap()
{
$_GET['changeVisitAlpha'] = false;
$_GET['removeOldVisits'] = false;
$_GET['showFooterMessage'] = false;
return FrontController::getInstance()->dispatch('UserCountryMap', 'realtimeMap');
}
**Using other plugin controller actions**
public function myPopupWithRealtimeMap()
{
$_GET['changeVisitAlpha'] = false;
$_GET['removeOldVisits'] = false;
$_GET['showFooterMessage'] = false;
$realtimeMap = FrontController::getInstance()->dispatch('UserCountryMap', 'realtimeMap');
$view = new View('@MyPlugin/myPopupWithRealtimeMap.twig');
$view->realtimeMap = $realtimeMap;
return $realtimeMap->render();
}
For a detailed explanation, see the documentation here.