function renderTimeTracking() { $mainFunction = $this->getMainFunction(); t3lib_befunc::setMainFunction($mainFunction); $pageByMenu = array_flip($this->pi1->menuByPage); $activeMenuID = $pageByMenu[$this->getActiveMenu()]; $this->pi1->tsfe->id = $activeMenuID; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/cache/frontend/class.t3lib_Cache\\Frontend\\VariableFrontend.php']['set'] = NULL; $GLOBALS['LANG'] = NULL; $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['parser']['xml'] = \TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser::class; $be = new \TYPO3\CMS\Core\Cache\Backend\NullBackend('context'); $fe = new \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend('t3lib_l10n', $be); $cm = new \TYPO3\CMS\Core\Cache\CacheManager(); $cm->registerCache($fe); $GLOBALS['typo3CacheManager'] = $cm; $content[] = $this->pi1->main('', array()); $html = new View('template/template.phtml'); $html->title = 'Rechnung+ 2.0'; $html->headerData = implode("\n", $this->pi1->tsfe->additionalHeaderData); $html->content = implode("\n", $content); $html->h1 = $this->pi1->menuOptions[$this->getActiveMenu()]; $html->h2 = $mainFunction; $html->activeMenu = $this->pi1->tsfe->id; $html->userSelection = $this->getUserSelection(); $html->countUsers = sizeof($this->pi1->getFEUserChoice()); $html->clientCount = $this->pi1->clients; $html->projectCount = $this->pi1->projects; $html->invoiceCount = $this->pi1->invoices; $html->workCount = $this->pi1->works; $html->groupCount = 0; return $html; }