Created
January 3, 2018 09:33
-
-
Save morozVA/38c2faca8b5e52ec06cb00cdce5bba2c to your computer and use it in GitHub Desktop.
evo user info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$useridmassive = $modx->userLoggedIn(); | |
$userid = $useridmassive["id"]; // Получаем ИД-пользователя | |
[+phx:userinfo=`email`+] | |
$user_data = $modx->getWebUserInfo($userId); //получение массива с инфой о пользователе по id, например $user_data['email'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment