[Typo3-dev] Questions about Paths

Lars Erler gurkenschwein at xaospage.de
Wed Mar 24 14:47:23 CET 2004


Thx a lot, that helped me much..

Lars


fabian panthen schrieb:
> well,
> 
>> require_once($this->cObj->stdWrap($conf['pocconfig']./config.inc.php];
>>
> if the above was copy paste, you're definitely missing closing braces 
> for stdWarp as well as require_once.
> 
> if not it depends. are you writing a plugin, user object or core class 
> extension?
> 
> i think an extension should keep all files inside the extension folder.
> then you could do something like
> require_once(t3lib_extMgm::extPath($_EXTKEY).'subFolderIfYouWish/yourFile.php'); 
> 
> 
> plugins can get values directly via typoscript.
> if you do:
> plugin.tx_myextension_pi1 = USER_INT
> plugin.tx_myextension_pi1 {
>    userFunc = tx_myextension_pi1->main
>    path = /whatevet/path
> }
> 
> you' can do $config['path'] in the plugins main() function
> 
> for similar options on custom scripts read:
> http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=442&tx_extrepmgm_pi1[tocEl]=1270&cHash=8e8c0e11db 
> 
> 





More information about the TYPO3-dev mailing list