WebSite X5Help Center

 
Vagn M.
Vagn M.
User

Error when trying to get the name og the user logged in  en

Autor: Vagn M.
Visitado 85, Seguidores 1, Compartilhado 0  

When adding this code:

<?php
$pa = newimPrivateArea();
$user = $pa->who_is_logged();
echo$user['realname'];
?>

To get the name of the user logged in I get this error message:

Fatal error: Uncaught Error: Class 'imPrivateArea' not found in /var/www/sochvid.dk/hjemmeside/php/VisBruger.php:2 Stack trace: #0 /var/www/sochvid.dk/hjemmeside/kalender.php(360): include() #1 {main} thrown in /var/www/sochvid.dk/hjemmeside/php/VisBruger.php on line 2

It's hard to find proper documentation of how to use PHP together with Website X5, but I hope someone can give me an explanation to solve this problem.

Thank you in advance.

Best Regards
Vagn Majland

Publicado em

Sem comentários