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

nicolasforgerit.com | Nicolas Forgerit nicolas.forgerit at gmail.com
Thu Feb 21 17:08:07 CET 2013


Hey Natalia,

the following TS
-----------------------
  10 = USER_INT
  10 {
    userFunc = tx_extbase_core_bootstrap->run
    pluginName = Pi1
    extensionName = News
    controller = News
    action = eventDetail

    switchableControllerActions {
      News {
        1 = eventDetail
      }
    }

    settings =< plugin.tx_news.settings
    persistence =< plugin.tx_news.persistence
    view =< plugin.tx_news.view
  }
-----------------------
still works for me on current master. Did you double-check your params?

All the best,
  Nico

On 21.2.13 4:59 PM, Natalia Postnikova wrote:
> Hi list members,
> 
> before TYPO3 6.0 it was possible to include a plugin written in Extbase
> like this:
> temp.topViewedSites = USER
> temp.topViewedSites {
>     userFunc = tx_extbase_core_bootstrap->run
>     pluginName = Rate
>     extensionName = MyExtension
>     controller = Page
>     action = topViewedSites
> 
>     settings =< plugin.tx_myextension.settings
>     persistence =< plugin.tx_myextension.persistence
>     view =< plugin.tx_myextension.view
> }
> 
> Now this does not work, because I'm using namespaces in my extension and
> the dispatcher tries to create a class object with this name:
> Tx_MyExtension_Controller_PageController, which of course does not
> exists. Instead my class is called
> Vendor\MyExtension\Controller\PageController.
> 
> Is there another way to include a plugin with typoscript?
> How can I tell the dispatcher to search for the namespaced class instead?
> 
> Thanks for any replies, best regards
> Natalia
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


More information about the TYPO3-project-typo3v4mvc mailing list