Task #39115

Wrong description in t3lib_extMgm::siteRelPath

Added by Stefan Froemken 11 months ago.

Status:New Start date:2012-07-20
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:Documentation
Target version:4.7.3
TYPO3 Version:4.7 Complexity:easy
PHP Version:5.3
Votes: 0

Description

Hello TYPO3-Team,

this is not a bug. This is a hint regarding a wrong description of the method siteRelPath in t3lib_extMgm.

You wrote: "Useful for images and links from the frontend"

THIS IS WRONG!
siteRelPath does not respect config.absRelPrefix. And that is good. Don't change that! But please change the confusing description of that method to something like that:

"Useful for images and links from the backend"
or
"Only useful for internal processes within your extension."

Maybe you can add a hint HOW to use siteRelPath within the FE:
"If you need a valid path for your FE, then insert the result of this method into $this->cObj->fileResource($path)"

Stefan

Also available in: Atom PDF