How to find user information in Website X5 
Autor: Vagn M.
Visitado 92,
Followers 1,
Compartido 0
I am trying to find and display the user information related to the user logged in to Website X5. The php-code used looks like this:
<?php
require"res/x5engine.php";
$pa = Configuration::getPrivateArea();
$user = $pa->whoIsLogged();
echo"Username: ".$user['username'];
echo"uid: ".$user['uid'];
echo"email: ".$user['email'];
echo"Firstname: ".$user['firstname'];
echo"Lastname: ".$user['lastname'];
Please view the attached file to see the result (or missing result).
Best Regards
Vagn Majland
Publicado en
Hello Vagn
Into an HTML object this code is OK
Take Care, to work correctly the page where is this code nees to be private.... Does not works in other case
And the display is:
Hopt this helps
Axel
Autor
Thank you Alex
I wasn't aware of that the "Set this page as Locked" should be marked.
Now it's working as expected thanks to you.
Best Regards
Vagn