How do I pass a param in xen:callback


Well-known member
Hi xf_phantom,

Thank you so much for your link. I've been looking at that and trying to make it work, but no success.

What I would like to do is pass the thread_id to my php script.

I was hoping something like this would work:

<xen:callback class="Andy_CalendarAdded_index" method="getHtml" params="{$thread}"></xen:callback>

my php script looks like this:

class Andy_CalendarAdded {
    public static function getHtml($content, $params) {
        echo $params;


Well-known member
Yes here's the code I added to my thread_view template:

<xen:callback class="Andy_CalendarAdded_index" method="getHtml" params="{xen:array 'thread={$thread}'}"></xen:callback>