예제 #1
0
 /**
  * Initializes the view before invoking an action method.
  *
  * Override this method to solve assign variables common for all actions
  * or prepare the view in another way before the action is called.
  *
  * @param \TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view The view
  * @return void
  */
 protected function initializeView(\TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view)
 {
     if (isset($this->settings['templatePath']) && !empty($this->settings['templatePath'])) {
         /** @var $view \TYPO3\CMS\Fluid\View\TemplateView */
         $view->setTemplateRootPath(array_shift(explode(' ', $this->settings['templatePath'])));
     }
 }