[+FEATURE] Extbase (MVC): Backport possibility to change the view object class name...
authorBastian Waidelich <bastian@typo3.org>
Tue, 2 Nov 2010 19:03:28 +0000 (19:03 +0000)
committerBastian Waidelich <bastian@typo3.org>
Tue, 2 Nov 2010 19:03:28 +0000 (19:03 +0000)
commit21a0771d30b7705813b581c87ee4e997db6066aa
treefb9323016fe87a91b7d38b5161335b43c1a7d679
parent35ce4341eca064702dc166ea7b6a3be3e7cdc9b4
[+FEATURE] Extbase (MVC): Backport possibility to change the view object class name more easily

Backported FLOW3s improved resolveView() mechanism. Tx_Fluid_View_TemplateView is still the default implementation, but can be easily changed by setting $defaultViewObjectName in your controller. Besides it's possible to specifying different views depending on the current request format by setting $viewFormatToObjectNameMap.
NOTE: If the view can't be rendered, the new template based "NotFoundView" will be created. So instead of the invisible HTML comments of the EmptyView, you'll get a more meaningful error message if the template file could not be found

Resolves: #8990
typo3/sysext/extbase/Classes/MVC/Controller/AbstractController.php
typo3/sysext/extbase/Classes/MVC/Controller/ActionController.php
typo3/sysext/extbase/Classes/MVC/View/AbstractView.php
typo3/sysext/extbase/Classes/MVC/View/EmptyView.php
typo3/sysext/extbase/Classes/MVC/View/NotFoundView.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/View/ViewInterface.php
typo3/sysext/extbase/Resources/Private/MVC/NotFoundView_Template.html [new file with mode: 0644]