15 Oct, 2026

Be Careful Using CurrentDateTime() in PHPMaker 2026! – Masino Sinaga

In PHPMaker 2025 and previous major versions, we canassign global function CurrentDateTime() with the following code, for example on the event server Row_Inserting and/or Row_Updating: $newRow[“Last_Updated”] = CurrentDateTime(); Since version 2026, the code will produce an error like this (assuming Debug mode is enabled): PHPMaker2026\Demo2026\Db\Entity\Help::setLastUpdated(): Argument #1 ($value) must be of type ?DateTimeInterface, string given, […]

2 mins read

Be Careful Redirecting Users After Logging in PHPMaker 2025 – Masino Sinaga

In PHPMaker version 2024, we can write the following simple code in the event server User_LoggedIn to redirect Users nancy After successful login, go to the page List table orders: if ($usr == “nancy”) { $this->terminate(“orderslist”); } This can happen because in version 2024, the code that we write on the User_LoggedIn event server will […]

3 mins read