[TYPO3-mvc] Include Plugin with TypoScript since TYPO3 6

Helmut Hummel helmut.hummel at typo3.org
Sat Feb 23 14:46:05 CET 2013


Hi Natalia,

On 22.02.13 10:06, Natalia Postnikova wrote:
> I found a solution myself. You have to create a ClassAliasMap.php file,
> which maps the old style class name (no namespace) to the new namespaced
> class name.
>
> Create this folder structure in your extension:
> myextension/Migrations/Code/ClassAliasMap.php and insert a php array
> inside this file:
> <?php
> return array(
>       'MyExtension_Controller_TestController' =>
> 'Vendor\\MyExtension\\Controller\\TestController'
> );
> ?>

Doing so will work, but is kind of a hack. You can specify the 
vendorName like Tobi sugessted and Extbase will find your namespaced 
classes directly.

temp.topViewedSites = USER
temp.topViewedSites {
      userFunc = tx_extbase_core_bootstrap->run
      pluginName = Rate
      extensionName = MyExtension

      vendorName = Vendor

      controller = Page
      action = topViewedSites

      settings =< plugin.tx_myextension.settings
      persistence =< plugin.tx_myextension.persistence
      view =< plugin.tx_myextension.view
}


Kind regards,
Helmut

-- 
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 Core Developer, TYPO3 Security Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list