[Typo3-dev] make index.php a class

Kasper Skårhøj kasper2004 at typo3.com
Thu Jul 22 15:57:37 CEST 2004


Sounds at first as a great idea but then it occurs that index.php
already IS very lightweight, only including scripts and calling
functions.

Further, putting things into a class adds more overhead for a script
that is requested a LOT.

ALso the PHP_SCRIPT_EXT requires to be included in the global scope.

Further it will be hard work to move all the stuff because you have to
be VERY careful to register ALL variables used as globals and make no
mistakes.

So really, why isn't it enough to be able to extend "tslib_fe" which is
in fact doing exactly what you are looking for (encapsulating
functionality from the index.php in a class)?

I can understand that you want profiling on specific parts in index.php
- but that is such a specific usage that it hardly justifies the work
and overhead of packing the script code into a class.

What do you think?

- kasper









More information about the TYPO3-dev mailing list