Hi
Is there any difference in V2025 when accessing global functions?
i am in Page_Rendering and trying to use CurrentUserID() or CurrentUserInfo(“FirstName”) etc but not returning anything CurrentUserName() and CurrentUserLevel() works.
worked in in v2024
<?php
global $MyCurrentUserName;
if (IsLoggedIn() && !IsAdmin())
echo "My Current UserName: " . $MyCurrentUserName;
?>
Re-generate ALL the script files, and then from the generated web application, make sure you have already logged in by using nancy username, and then go to News menu, you will see the following result:
My Current UserName: Nancy Davolio - nancy
Now, back to your case, make sure you have already had FirstName field in your users table.
You may also post your code in that Page_Rendering and any other related server event (if any) for discussion.