[TYPO3-dev] Extend class in extension's creation

Hraklis Karvasonis Hkarvasonis at customit.com
Tue Sep 26 18:10:03 CEST 2006


I tried also that, but now i receive the following:

Warning: main(PATH_t3libclass.t3lib_extmgm.php): failed to open stream: 
No such file or directory in mynewclass.php on line 3

Fatal error: main(): Failed opening required 
'PATH_t3libclass.t3lib_extmgm.php' (include_path='.:/usr/share/pear') in 
mynewclass.php on line 3

Is there any way i can define somewhere that the new class gets all the 
includes like the extension's new class does? Because right now it seems 
that it doesn't find any class i am trying to include there.

Thanks.

Oliver Hader wrote:
> Hraklis Karvasonis wrote:
>> is Fatal error: Undefined class name 't3lib_extmgm' in mynewclass.php on
>> line 11
> 
> Okay, the extmgm is not found, so t3lib_extMgm::extPath isn't working at
> all. You have to include/require the t3lib-class before using it:
> 
> require_once(PATH_t3lib.'class.t3lib_extmgm.php');
> require_once(t3lib_extMgm::extPath('myextension').'class.myextension.php');
> 
> 
> olly




More information about the TYPO3-dev mailing list