• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

xen:callback

Valhalla

Well-known member
#1
Can I use the <xen:callback> tag to fetch some changeable data if I pass two parameters (user id, node id)? Something like below. I may be using xen:array incorrectly.

params="{xen:array 'userId={$visitor.user_id}','forumId={$forum.node_id}'}"

PHP:
public static function getStatus($params)
{
   $userId = $params['userId'];
   $forumId = $params['forumId'];

   // return something
}
 
#8
Is there any documentation on xen:array? I can't seem to find any. I'm also trying to do something along the lines of:

params="{xen:array 'userId={$visitor.user_id}','forumId={$forum.node_id}'}"

within a <xen:callback>