[Typo3-dev] [Good||Silly] idea ???
dan frost
dan at danfrost.co.uk
Tue Mar 8 14:26:29 CET 2005
Anyother option is the pattern i use for functions in obts which allows
all the obts functions to exist in as many php classes as you like.
There's no dynamic/compiled code in this.
dan
Martin Poelstra wrote:
> Hi Bernhard,
>
> (snip)
>
>> then load this file via "implode('', file($filename))".
>> then replace the markers for baseclass and extended class.
>> then evalute the script.
>
> (snip)
>
>> So is this a good idea and should we think about a new (possible
>> different) way of doing XCLASS
>> extending ???
>>
>> Or is this "eval" thingy just damn slow and one shouldn't use it ?
>
>
> This would mean that php-accelerators won't be able to cache the
> classes, which is a major drawback.
> Another solution would be to save the 'file' you are trying to eval() to
> a 'normal' .php-file (just like the temp_CACHED_-files).
> Then you'd only need to write these files during installation of a new
> extension that also extends the class. You can simply point the
> ['XCLASS']-variable to this merged-class-file, and all should be OK.
>
> Grtz,
> Martin
More information about the TYPO3-dev
mailing list