I have a new problem:
I have correctly registered the action. my php file is linked with my javascript one and the are able to pass simple data like strings, number or boolean value...
...BUT: all elgg function that i call on my php file like
$owner = elgg_get_logged_in_user_entity();
$guid = elgg_get_logged_in_user_guid();
$logged = elgg_is_logged_in();
give a bad result . I explain.
elgg_get_logged_in_user_entity(); ---> give NULL
$guid = elgg_get_logged_in_user_guid(); ---> give 0
$logged = elgg_is_logged_in(); ---> give false
i think is a session problem. but i need that all those function must work for give back data to my js.
it is a handler problem? How to declare it correctly ?? it's a session problem???
thanks a lot for future answers.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
You must log in to post replies.Pls, stay tuned on the same topic and don't create the duplicates