Extbase:
authorSebastian Kurfürst <sebastian@typo3.org>
Fri, 19 Jun 2009 10:21:14 +0000 (10:21 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Fri, 19 Jun 2009 10:21:14 +0000 (10:21 +0000)
* Added injectSettings evaluation, so settings are passed to the View (fixes #3413)

typo3/sysext/extbase/Classes/MVC/Controller/ActionController.php

index d12ae81..79e5ebe 100644 (file)
@@ -236,6 +236,9 @@ class Tx_Extbase_MVC_Controller_ActionController extends Tx_Extbase_MVC_Controll
                        $view = t3lib_div::makeInstance($viewObjectName);
                        $view->setControllerContext($controllerContext);
                }
+               if (method_exists($view, 'injectSettings')) {
+                       $view->injectSettings($this->settings);
+               }
                $view->initializeView(); // In FLOW3, solved through Object Lifecycle methods, we need to call it explicitely.
                // $view->assign('flashMessages', $this->popFlashMessages());
                return $view;