[TYPO3-mvc] Load extbase plugin with typoscript in TYPO3 6.0

Marc Bastian Heinrichs typo3 at mbh-web.de
Thu Jan 3 22:57:23 CET 2013


Hey,

> I've search the web allready and tried different approuches but without
> success. I'm trying to load my extbase extension with typoscript in
> TYPO3 6.0
> 
> 
> My TS:
> lib.header = USER
> lib.header {
>     userFunc = tx_extbase_core_bootstrap->run

TYPO3\CMS\Extbase\Core\Bootstrap->run

>     extensionName = Og
>     pluginName = Header
> }
> 
> My ext_localconf.php:
> \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
>     'TYPO3.' . $_EXTKEY,

'Og' or 'Yourvendorname.Og'

>     'Header',
>     array(
>         'Header' => 'index',
>     ),
>     // non-cacheable actions
>     array(
>         'Header' => '',
>     )
> );
> 
> My Classes/Controller/HeaderController.php

namespace?

> class HeaderController extends
> \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
> 
>     /**
>      * action index
>      *
>      * @return void
>      */
>     public function indexAction() {
>         echo 'bla';
>     }
> 
> }

Best,
Maba




More information about the TYPO3-project-typo3v4mvc mailing list