[+FEATURE] Extbase (MVC): made layoutRootPath and partialRootPath configurable. Now...
authorBastian Waidelich <bastian@typo3.org>
Thu, 17 Sep 2009 10:30:44 +0000 (10:30 +0000)
committerBastian Waidelich <bastian@typo3.org>
Thu, 17 Sep 2009 10:30:44 +0000 (10:30 +0000)
[~TASK] Extbase (MVC): Fixed doc comment in UriBuilder

typo3/sysext/extbase/Classes/MVC/Controller/ActionController.php
typo3/sysext/extbase/Classes/MVC/Web/Routing/UriBuilder.php
typo3/sysext/extbase/Classes/Utility/Extension.php

index 62e7688..81f1113 100644 (file)
@@ -259,9 +259,15 @@ class Tx_Extbase_MVC_Controller_ActionController extends Tx_Extbase_MVC_Controll
 
                // Template Path Override
                $extbaseFrameworkConfiguration = Tx_Extbase_Dispatcher::getExtbaseFrameworkConfiguration();
-               if (isset($extbaseFrameworkConfiguration['view']['templateRootPath']) && $extbaseFrameworkConfiguration['view']['templateRootPath']) {
+               if (isset($extbaseFrameworkConfiguration['view']['templateRootPath']) && strlen($extbaseFrameworkConfiguration['view']['templateRootPath']) > 0) {
                        $view->setTemplateRootPath(t3lib_div::getFileAbsFileName($extbaseFrameworkConfiguration['view']['templateRootPath']));
                }
+               if (isset($extbaseFrameworkConfiguration['view']['layoutRootPath']) && strlen($extbaseFrameworkConfiguration['view']['layoutRootPath']) > 0) {
+                       $view->setLayoutRootPath(t3lib_div::getFileAbsFileName($extbaseFrameworkConfiguration['view']['layoutRootPath']));
+               }
+               if (isset($extbaseFrameworkConfiguration['view']['partialRootPath']) && strlen($extbaseFrameworkConfiguration['view']['partialRootPath']) > 0) {
+                       $view->setPartialRootPath(t3lib_div::getFileAbsFileName($extbaseFrameworkConfiguration['view']['partialRootPath']));
+               }
 
                if ($view->hasTemplate() === FALSE) {
                        $viewObjectName = $this->resolveViewObjectName();
index 795a2ca..f10d1d4 100644 (file)
@@ -425,7 +425,7 @@ class Tx_Extbase_MVC_Web_Routing_UriBuilder {
        /**
         * Builds the URI, backend flavour
         * The resulting URI is relative and starts with "mod.php".
-        * The settings pageUid, pageType, noCache, useCacheHash, linkAccessRestrictedPages, createAbsoluteUri
+        * The settings pageUid, pageType, noCache, useCacheHash & linkAccessRestrictedPages
         * will be ignored in the backend.
         *
         * @return string The URI
index b54ff58..d4bda63 100644 (file)
@@ -123,7 +123,9 @@ plugin.tx_' . strtolower($extensionName) . '.persistence {
        }
 }
 plugin.tx_' . strtolower($extensionName) . '.view {
-       templateRootPath = 
+       templateRootPath =
+       layoutRootPath =
+       parialRootPath =
 }'             );
                t3lib_extMgm::addTypoScript($extensionName, 'setup', '
 # Setting ' . $extensionName . ' plugin TypoScript