v2021.0.15
Why are server event function names different in the generated files than in the program?For example:
function Lookup_Selecting($fld, &$filter)
is generated as:
function lookupSelecting($fld, &$filter)
v2021.0.15
Why are server event function names different in the generated files than in the program?For example:
function Lookup_Selecting($fld, &$filter)
is generated as:
function lookupSelecting($fld, &$filter)
Because since v2021, PHPMaker starts using PSR-12 coding standard.
According to the standard, method names MUST be declared in camelCase. Therefore, server events like the Row_Rendered server event (which is actually a method of the table class) will be generated as rowRendered.
However, server events that are actually global functions like Database_Connecting are not changed (for backward compatibility).
ok
Then I have to be careful copy/pasting when testing new code