[TYPO3-core] RFC: Bug #7096: Consistent interface for AJAX calls in the TYPO3 Backend

Ingo Renner ingo at typo3.org
Tue Jan 8 17:39:21 CET 2008


Benjamin Mack wrote:

Hi Benni,

>> * either make TYPO3_AJAX a variable or remove the part in init.php 
>> where you define it as false
>> -- reason: constants are "constant" and don't change/have different 
>> values, you still check for a "true" TYPO3AJAX constant, if you want 
>> it to be true or false, use a (global) variable
> Well, I have to say "no" to that one. Reasons:

all not very convincing... :-/ a constant is a constant stays a constant

Even if it's done so in CLI, it doesn't mean that we should introduce 
the same mistake a second time...

> d) I could still be swung over to name the constant "TYPO3_ajaxMode" to 
> make it similar to the TYPO3_cliMode.

that'd be a good point for consistency

> and: still no +1 ?

after testing ;-)


Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2


More information about the TYPO3-team-core mailing list