Link to backend module

Build link to backend module


//Name of the module ($mainModuleName + '_' + $extensionName + $subModuleName)
$module_name = 'tools_GitsCacheStatus';
$url_parameters = array(
'tx_gitscache_tools_gitscachestatus' => array(
'controller' => 'Tag',
'action' => 'show',
'tag' => $tag
)
);
$uri = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl($module_name, $url_parameters);

IP address

Get IP address of a user behind a proxy like e.g. nginx or Varnish.


\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REMOTE_ADDR');