[TYPO3-core] RFC: #15754: ExtDirect in Frontend

Martin Kutschker masi-no at spam-typo3.org
Tue Sep 21 17:58:30 CEST 2010


Am 21.09.2010 17:49, schrieb Stefan Galinski:
> Martin Kutschker wrote:
> 
>> Question: is it ok by the CGL to have a class.*.php file to include more
>> than a class? I dislike very much this auto-instantiation scheme. It
>> defeats IMHO the whole idea of the file naming scheme.
> 
> What would be the alternative? Refactoring the inclusion of eID scripts? 
> Providing a php file with two lines of code to instantiate the eID class?

Whatever needs to be done.

Looking at the code a class isn't justified anyway. To me simple script if loaded with require()
like it is done in index_ts.phpmakes more sense then this kind of pseudo-OO. I know this tradition
has been started by Kasper, but I had hoped that now with all the fresh air around, we can get rid
of such oddities.

BTW, the code belongs IMHO to sysext/cms if it's FE only. Next to showpic.php which is - aha - also
a script.

Masi




More information about the TYPO3-team-core mailing list