[Typo3-dev] Feature-Request: A way to register a path to include_path by extension manager

Karsten Dambekalns karsten at typo3.org
Wed Apr 20 18:58:44 CEST 2005


Hi.

Sven Wilhelm wrote:
> Idea is to register an extension as one that appends a directory to the
> include_path. Useful for integrating library extensions that depend on
> other library extensions.

I don't know if this really nice. Over time you might have a lot of
extensions that include files without path prefix but rely on include_path
being expanded. Now you ay very well see name clashes, with unpredictable
results.

What is wrong about this way of including files from extensions:
 require_once (t3lib_extMgm::extPath('adodb').'adodb/adodb.inc.php');
?

Karsten
-- 
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/




More information about the TYPO3-dev mailing list