[TYPO3] EXT develop path question

Rocky Ou rockyo at max-source.com
Mon Nov 20 06:15:50 CET 2006


Rocky Ou wrote:
> Bartosz Aninowski wrote:
> 
>> Uzytkownik "Rocky Ou" <rockyo at max-source.com> napisal w wiadomosci 
>> news:mailman.1.1163734868.24640.typo3-english at lists.netfielders.de...
>>
>>> Hey list,
>>>
>>> I need my Front end plugin render some image from EXT's res 
>>> directory. I use the following code does not give me the image in the 
>>> browser. BTW, I tried extPath as well.
>>>
>>> $resPath=''.t3lib_extMgm::extRelPath($this->extKey).'';
>>> $content.='<h5><img src="'.$resPath.'res/header.jpg"></h5>
>>>
>> try this
>> $resPath=''.t3lib_extMgm::extRelPath($this->extKey).'';
>> $content.='<h5><img src="'.$resPath.'res/header.jpg" /></h5>
>>
> Thanks very much for your reply! But it does not work neither.
> Anyone help me please?
> 
> Thanks in advance!
> Rocky

Hey t3lib_extMgm::siteRelPath did the work:)

Rocky



More information about the TYPO3-english mailing list