[TYPO3-core] RFC: #12591: Make EXT: syntax consistent in core
Benjamin Mack
benni at typo3.org
Sun Feb 21 16:57:07 CET 2010
Hi Steffen,
well, what I would consider is to have a method in t3lib_div or better
t3lib_extMgm that's called
t3lib_extMgm::resolveExtPrefix($path, (bool) $returnAbsolutePath)
and that does this.
$path = 'EXT:myext/filepath.jpg"
to
$path = '/path/to/typo3conf/ext/myext/filepath.jpg'
but can also be fed with $path = 'typo3conf/ext/myext/filepath.jpg"
(basically a check if the string starts with "EXT:"
and then we make use of this method consistently throughout the Core.
What do you think?
All the best,
Benni.
More information about the TYPO3-team-core
mailing list