/** * @param \TYPO3\Flow\Mvc\View\ViewInterface $view The view to be initialized * @return void */ protected function initializeView(\TYPO3\Flow\Mvc\View\ViewInterface $view) { parent::initializeView($view); $detector = new \TYPO3\Flow\I18n\Detector(); $locale = $detector->detectLocaleFromHttpHeader($_SERVER["HTTP_ACCEPT_LANGUAGE"]); $view->assign('locale', $locale); $view->assign('session', $this->session); }
/** * @param ViewInterface $view * @return void */ protected function initializeView(ViewInterface $view) { /** @var TemplateView $view */ $view->setOption('templateRootPathPattern', '@packageResourcesPath/Private/'); parent::initializeView($view); }